Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing parts of combobox

Status
Not open for further replies.

TJones8

Technical User
Apr 16, 2002
77
0
0
GB
Hi all.
I'm making a custom combobox and for ease of use deriving my ccontrol directly from the ComboBox class.
Is there any way I can access the button part of the combobox in order to show\hide it (ie if there are no list items, then hide the dropdown button).

If it's a no then i'm gonna have to go back to creating my own out of text boxes and buttons.

thx

P.S. i'm using VB.NET

if at first you don't succeed, get a 10lb lump hammer
 
Why not put a TextBox on your control that is visible only when there are no items in your combobox.

The Property Get to get your value could then check the visibilty of the TextBox to determine whether to return the value from it or the combobox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top