StrataFrame Forum

Combo drop down

http://forum.strataframe.net/Topic27490.aspx

By Ian Johnston - 6/19/2010

Is it possible to send the keystoke equivalent to the combo so it will drop down when it recieves the focus?
By Charles R Hankey - 6/19/2010

Sure, just put



SendKeys.Send("%{DOWN}")




in the Enter handler for the dropdownlistbox



Of course you can just start typing to find the value you want.



Or, you can create a keypress handler to do the Sendkeys.Send on hitting space or something.



( this also works for dropping the calendar in a Datetimepicker, where I have it responding to a C or c.






By Greg McGuffey - 6/21/2010

A safer method is to use the DroppedDown property. Just set it to true.