carter2408 Posted February 11, 2015 Report Posted February 11, 2015 Vreau sa se bifeze RadioButton1 automat atunci cand scriu un cuvant1 in TextBox. Si la un alt cuvant2 sa se bifeze RadioButton2 .Acum 12 ore am luat codul de pe https://msdn.microsoft.com/en-us/library/system.windows.forms.radiobutton.performclick(v=vs.100).aspxpe care l-am modificat si a mers .Codul modificat de mine arata cam asaIf (TextBox1.Text = "Item1") And RadioButton2.Checked Then RadioButton1.PerformClick() End If If (TextBox1.Text = "Item2") And RadioButton1.Checked Then RadioButton2.PerformClick() End IfNu inteleg de ce nu mai merge ? Quote
daNNy.bv Posted February 11, 2015 Report Posted February 11, 2015 fa asa If TextBox1.Text = "item1" And RadioButton1.Checked = False Then RadioButton1.Checked = True ElseIf TextBox1.Text = "item2" And RadioButton2.Checked = False Then RadioButton2.Checked = True Else RadioButton1.Checked = False RadioButton2.Checked = False End Ifpune asta pe eventul textbox textchanged Quote
carter2408 Posted February 11, 2015 Author Report Posted February 11, 2015 Mersi mult !!! merge Quote