disabling shortcuts in a text box

DimkaNewtown

Active member
Joined
Jan 21, 2003
Messages
43
Location
New York City
I need to be able to disallow the use of shortcuts in a textbox such as "Ctrl+C", "Ctrl+V" and others as well as mouse select and right-click menu.

I am using windows forms in C#.
 
For the right-click you can add a New context menu to the textbox.

Ctrl+C can be handled by the Keypress event
 
So if I use the Handled property and set it to false, then the processing of the keypress would end there? :confused:

Good idea about the new context box, thanks! :cool:
 


Write your reply...
Back
Top