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

Popup Menu from Button not right click in .Net

Status
Not open for further replies.

drdad5727

Programmer
Feb 28, 2005
28
US
I'm trying to popup a menu from a Button, or something that looks like a button in .Net 3.5.

I tried creating a ContextMenuStrip, since it has a Show method, but the menu disappears immediately. ContextMenuStrip doesn't have a ShowDialog method.

Then I tried using a ToolStrip, so I could use a ToolStripDropDown, but tool strip buttons don't look like buttons, so I had to abandon that.

There must be some standard method to do this, but I can't figure it out. Any pointer appreciated.
 
Nothing like describing the problem to someone else to help you find your problem.

I'm actually too embarrassed to admit to what I was doing wrong.
 
>>I'm actually too embarrassed to admit to what I was doing wrong.

It could help others from making the same mistake ...

Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top