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

Disabling Windows clipboard popup menu with textbox control

Status
Not open for further replies.

stevemelaaron

Programmer
Sep 14, 2000
25
US
I need to display a popup menu upon a right-click over a textbox control. I use the PopUpMenu method to bring up the menu, however, I get some odd behavior when I try to do this. If I call PopUpMenu in the MouseDown event, you must double-click the right mouse button in order to get the popup menu to appear; if I call PopUpMenu in the MouseUp event, you don't get your popup menu at all, instead you get the Windows clipboard 'Cut/Copy/Paste/Delete' popup menu. Any ideas on how to fix this? I've tried using API calls to GetMenu/DestroyMenu in the MouseUp and MouseDown events before I display my popup menu to kill the Windows clipboard popup, but to no avail.

--Steve K.
stevemelaaron@msn.com
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top