I added a few items in the combobox dropdown list at the form load event.
so i did this code:
My form looks like this:Code:Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ComboBox1.Items.Add("Mr.") ComboBox1.Items.Add("Mrs.") End Sub
Attachment 72421
At the runtime I dont want to allow the user to write something in the combobox as a text.The user can only select an item from the dropdown list of the combobox.
How to do this?




Reply With Quote