Hi all ,
I want to know the code to display all the items of a combo box in vb.net without using a mouse.i.e. withoutclicking the arrow of the combobox.
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Veeraragahvan ThirumalePosted Feb 25, 2008, 12:02 PM
AlanPosted Feb 25, 2008, 5:10 AM
To do this you need to change the style of the ComboBox (comboBox1 say) dynamically, like this:
comboBox1.DropDownStyle =
ComboBoxStyle.SimplecomboBox1.Height = comboBox1.PreferredHeight