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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing a combobox dropdown

Status
Not open for further replies.

greaver

Programmer
Apr 29, 2002
31
CA
Hi Guys,

I want to duplicate the path completion behavior of IE's address bar. In other word as I type a path, a listing of close matches should be shown in the dropdown list. How do I get the combobox to drop its list? I've sub-classed the ComboBox and called its protected method OnDropDown directly with no visible result. Any ideas?
 
Try setting the value of "Combobox1.DroppedDown" to true -

this.ComboBox1.DroppedDown = true;

d - Dean
---
 
Shoot.. one small glitch.... when the list drops down, the mouse pointer becomes invisible:"( If I move the mouse, the selection on the dropdown list changes but the mouse is not visible. Very odd... any ideas?
 
I've done some more hacking and I think my problem with the "invisible mouse pointer" is related to the keyUp event that I am capturing. (I've made the combobox drop its list using a command button with no ill effects). I've set the KeyEventArgs.Handled = true and = false with no effect on the mouse pointer (in)visibility... any suggestions would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top