listbox drop style

G

GS

in visual studio 2005 express VB I found mention of drop style for listbox
but so far my searches came up empty as to how and what they are.

I was to set height and I figure I can probably do something with setting
height during the focus events to simulate drop down list

However if there are drop down list style or dropdown list then it would be
better for to use them.
 
G

Guest

GS,

Perhaps you are thinking of the combobox with its DropDownStyle property,
which can be set to DropDownList?

Kerry Moorman
 
G

gs

thank you.

combobox would have been ok except I don't' want people to enter arbitrary
text
I tried using droplistbox with height adjusted by focus events. Functionally
OK but visually is less than desirable. The display text is not the
selected item.
 
J

Jeff Gaines

combobox would have been ok except I don't' want people to enter arbitrary
text

The Combo Box has 3 different styles, one of them doesn't allow entry of
text, it just allows picking from existing items.
 
G

GS

thank you


So I will use DropDownList and just populate the items for the cobobox, use
the selectedIndex to identify what is selected

This will save me the hassle of figuring to scroll the listbox
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top