Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("4")
ComboBox1.Items.Add("5")
ComboBox1.Items.Add("6")
ComboBox1.Items.Add("7")
ComboBox1.Items.Add("8")
ComboBox1.Items.Add("9")
ComboBox1.Items.Add("10")
ComoBox1.SelectedItem = 0
End Sub
Private Sub cmdShow_Click(sender As Object, e As EventArgs) Handles cmdShow.Click
Dim Message As string
Message = "Your items are " + ComboBox1.Text ... + vbCr
MsgBox(Message, vbOKOnly + vbInformation, "Your Items")
End sub
It shows an error in Message that "ComboBox1 is not declared. It may be inaccessible due to its protection level"
How can I display ComboBox1.Text..
I have many cboName.Text, but i put one for example.
Thank you!