Hi I have a form with a listbox, two comboboxes and two Radiobuttons.
What I want to do is make a selection from both comboboxes and either
Radiobutton and display these three elements across the top of the
listbox eg. 5, 10, 'Go'
As I need multiple rows of data I have a button to 'Load' this to the
listbox. I'm stuck though as I'm having difficulty loading this
correctly. Question: Woulkd I be better off with a datagrid for this
job, and if so, would I need to use dataview. If it is easy using the
listbox, I'm in need of some guidance
Private Sub RadioButton1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RadioButton1.Click
Dim first, Second As String
If RadioButton1.Checked = True Then
first = "Go"
ElseIf RadioButton2.Checked = True Then
Second = "Stop"
End If
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
ComboBox1.Items.Add(5)
ComboBox1.Items.Add(10)
ComboBox1.Items.Add(15)
ComboBox1.Items.Add(20)
ComboBox1.Items.Add(25)
ComboBox1.Items.Add(30)
ComboBox2.Items.Add(1)
ComboBox2.Items.Add(2)
ComboBox2.Items.Add(3)
ComboBox2.Items.Add(4)
ComboBox2.Items.Add(5)
ComboBox2.Items.Add(6)
End Sub