vb.net - Visual Basic - Grouped radio buttons -


Actually, the work I want to do is for me to read the selected radio button in a list week Is the key.

Here is my code (list view):

  Personal sub-Button1_Click (as the object, in the form of e EventArgs) handle AddButton.Click Dim Col1 string = ComboBox1.Text Column String = Dim Col3 String = ComboBox3.Text as Edge Reddit Adds New ListViewItem as OrderText = Col1 as 'First column to order.SubItems.Add (col2)' as the dim The second column joins the order.SubItems.Add (Col3) 'adds the third column ListView1.Items.Add (sequence) End Sub to  

If I put RadioButton1.Text in Dim Col2 and U Select when it runs, it displays it, but I want it so much that it shows what radio button is selected and displays the correct text. My group has four radio buttons, Which is called Groupbox 1 and each radio button is Radiobutton 1, 2, 3 etc.

The combo box is being used as the same but I need some type of radio button in my program. Any help is appreciated

Two radioobuttons inside a GroupBox, and with a text box:

  Personal sub RadioButtons_CheckedChanged (as the object , E EventArgs) _Handle RadioButton1.CheckedChanged, RadioButton2.CheckedChanged then CTYPE (Sender, RadioButton) .Checked then dim rButton form RadioButton = GroupBox1.Controls. OFTOP (RADIBUTON) () (where function (r) is checked r = true) FirstOrDefault () Me.TextBox1.Text = CTYPE (Sender, RadioButton) .text end then End Sub  

When a RadioButton is clicked, the text box text is updated. I do not know how to include you in List V, just take the text and put it where it is.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -