0

OK, this is probably very simple and it's likely that I am very simple, but it's bugging me big time :$ !!!

I have never written anything in VB before, a few things in VBA, but this is my first venture in to VB.net ... so sorry if I am being foolish !!!

I have created a Listbox as I want it, with the data in it as I want it, but there is not, as I would expect, a single downward arrow on the right of the Listbox that I click to "dropdown" the list, instead I have an up & down arrow, so can only scroll up & down through the list, which, IMHO, is horrible & much more difficult to use.

So the simple question is ... how do I get the Listbox to give me "dropdown" option ?!?

Thanks in advance ...

2
Contributors
4
Replies
7
Views
6 Years
Discussion Span
Last Post by vodkasoda
0

Use the ComboBox control instead.

I assume then, in a ComboBox, that I can block the user from inputting his own text & force him to choose one of the options ?!?

0

Yes. In the designer, go to the DropDownStyle property of the combo box and change it from "DropDown" to "DropDownList."

This can also be accomplished via code.

ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList

Edited by apegram: n/a

0

Yes. In the designer, go to the DropDownStyle property of the combo box and change it from "DropDown" to "DropDownList."

This can also be accomplished via code.

ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList

That's brilliant, thanks for your help ...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.