Disable control's paste contextmenu

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

Ryan Joseph So

Is it possible to disable the paste contextmenu of a control without
creating a new contextmenu to handle this, so i wont be able use to
paste on that control.

Ryan.
 
Ryan Joseph So said:
Is it possible to disable the paste contextmenu of
a control without creating a new contextmenu to
handle this

If you write ...
myTextBox.ContextMenu = new ContextMenu();
.... the "new menu" will never appear because it has no commands on it.

You'll also want to handle the Ctrl+V keystroke, because that pastes
too.

P.
 
I actually done this but there's still a line showing up when i right
click my mouse. Is there no other way to disable the paste menu so i
wont be able to click on it?
Ctrl+v can be handled easily, my problem now it just the right click.
 
Back
Top