Disable right click menu

  • Thread starter Thread starter Ryan Joseph So
  • Start date Start date
R

Ryan Joseph So

On textboxes when you right click the mouse button a menu will pop-up
with undo,cut,copy,paste,delete,select all. How can i disable the menu
so when i right click on the textbox no menu will pop-up?
Thank you very much.
 
* Ryan Joseph So said:
On textboxes when you right click the mouse button a menu will pop-up
with undo,cut,copy,paste,delete,select all. How can i disable the menu
so when i right click on the textbox no menu will pop-up?

Create an "empty" context menu and assign it to the control's
'ContextMenu' property.

- or -

Override the control's 'WndProc' and listen for 'WM_CONTEXTMENU' (and
"eat" it).
 
Ryan Joseph So said:
On textboxes when you right click the mouse button a menu will pop-up
with undo,cut,copy,paste,delete,select all. How can i disable the menu
so when i right click on the textbox no menu will pop-up?
Thank you very much.

What you are really asking is "How can I piss off my visitors by ****ing
with their web browsers?".When I come on a site like that, I immediately
turn off Java script, and save all of their pages and images that they
wanted to "protect" me from saving, just as a way of saying "**** you" to
the webmaster.
 
Back
Top