ComboBox expand with code?

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I have a combo box that I would like to expand or "drop down"
programmatically. The Simple style won't work because I still need the
control to contract or "roll up" after a selection is made, I just need to
be able to expand it with code. I'm not coming up with anything.. has
anyone done this? Do I need to fake a mouse click (yuck!)?

Thanks for reading,
Steve
 
Steve,

Have you tried to set the DroppedDown property on the combobox instance
to true? Doing so should set the drop down list to appear.

Hope this helps.
 
Nicholas, I totally missed this
Thanks for the help, that was an easy one! :)


Nicholas Paldino said:
Steve,

Have you tried to set the DroppedDown property on the combobox instance
to true? Doing so should set the drop down list to appear.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Steve said:
I have a combo box that I would like to expand or "drop down"
programmatically. The Simple style won't work because I still need the
control to contract or "roll up" after a selection is made, I just need to
be able to expand it with code. I'm not coming up with anything.. has
anyone done this? Do I need to fake a mouse click (yuck!)?

Thanks for reading,
Steve
 
Back
Top