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

Disable Mouse Right-Click 4

Status
Not open for further replies.

Varco

Programmer
Oct 22, 2000
49
US
Does anyone know how to disable the mouse right-click ability, say before a form is loaded, and restore after the form closes? Jim Varco
Varco Consulting
jvarco@varcconsulting.com
 
Good way it is create procedures in OCX and attach it to you project. So you will able execute code before your form loaded and after it already unloaded
 
question.....if you don't want the to right click on your forms you don't need to code for it thus nothing will happen with most controls anyway. Exception being Text boxes for the intrinsic controls. Some advanced controls have popup memus, are you trying to stop them from doing "View Source" on a web control?
 
are you trying to disable right click completely( for all apps etc) i know this is possible (ManMetUniversity, England disable the right mouse button) but i dont know how to do it. I like doing it the hard way! OK!
 
I need to disable the right mousce click while the Crystal Report v9 viewer form is loaded. The viewer object will display info that I would prefer not to have displayed if the mouse is right clicked over a field on the displayed report. I have discussed this at length with Crystal Tech, and they acknowledge the potential security issue, however at this time cannot do anything about it. I have no control over the displayed right mouse menu, so I want to disable the button completely before the object is displayed. Hope this helps, and thanks for the suggestions so far. Jim Varco
Varco Consulting
jvarco@varcconsulting.com
 
But you can always set hook on the specified window and control which messages are delivered to the hooked window and which not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top