Each time I enter the text in the box after clicking the (Add button), it does not add it in the combobox. What's missing??
You code never add text to combo box.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim userMsg As String
userMsg = Microsoft.VisualBasic.InputBox("Enter New City", "New City", "", 500, 500)
ComboBox1.Items.Add(userMsg)
End Sub
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444