ComboBox..

Lanc1988

Contributor
Joined
Nov 27, 2003
Messages
508
I have a combo box on my form but I want it so the user can type anything in it so I changed its property to Drop Down List but now when I run my program you can't have anything that shows automatically, its blank..

So is there a way I can have it so the user can't type anything in it but also have it so when it first starts it will have a certain option selected or at least so I can have text showing?
 
So is there a way I can have it so the user can't type anything in it but also have it so when it first starts it will have a certain option selected or at least so I can have text showing?

Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        ComboBox1.Text = "Insert Text Here"

End Sub

Keep it as a DropDownList and put this in Form1_Load...
 
Back
Top