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

Right-Click or Double-Click Combobox?

Status
Not open for further replies.

panuvin

Programmer
Mar 24, 2004
11
US
Is there a way to right-click or, more importantly, double-click on a combobox control?

I want to use this so when the user double-clicks on the combobox, a window comes up to add collection options during runtime.

Thanks!!!

Panuvin
 
why don't you just capture the doubleclick event of the combo box?
 
How do I change the event for the combobox in VS.NET 2005? If I double-click on the combobox using the IDE, it automatically goes to the 'SelectedIndexChanged' event in the code.

*** I just manually added the code into the form, but I know there's a way to change (and list) the events for each component. Anyone know how?

Thanks again!

Panuvin
 
in the IDE - where the properties are (name, size, backcolor, etc) at the top of that page you should see a lightning bolt. If you click that you can see a list of all the events available. double click on the space next to the event you want and it will be created.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top