when a button is pressed How do i make the combo box drop down automatically if an item from thecomboboxhas not been selected.?Thanks Poy
New To Vb.net - so a little Naive!
Hi, Poy,
Based on my understanding, you want to drop down a ComboBox when you click a button, don't you?
This is possible using DroppedDown property of the ComboBox.
For example,
Code Block Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.ComboBox1.DroppedDown = True End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.ComboBox1.DroppedDown = True
End Sub
More info
http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.droppeddown(VS.71).aspx
Hope this helps,
Regards
thanks alot - works perfectly!