Windows Develop Bookmark and Share   
 index > Windows Forms General > Combobox Drop Down
 

Combobox Drop Down

Hi All -

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!

Poy  Sunday, October 07, 2007 1:32 PM

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

More info

http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.droppeddown(VS.71).aspx

Hope this helps,

Regards

Yu Guo â€?MSFT  Tuesday, October 09, 2007 2:48 AM

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

More info

http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.droppeddown(VS.71).aspx

Hope this helps,

Regards

Yu Guo â€?MSFT  Tuesday, October 09, 2007 2:48 AM

thanks alot - works perfectly!

Poy  Tuesday, October 09, 2007 8:57 AM

You can use google to search for other answers

Custom Search

More Threads

• Combox.SelectedValue is null after item is selected
• PowerPoint in WebBrowser Control?
• image brighting
• Which key was pressed for ToolStripDropDownCloseReason.Keyboard?
• ChildForm...
• Imports vs fully declared
• Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead.
• Show State Image in the ListView Control
• debugging information log
• MdiParent and Multiple MdiChild forms