Feb 21, 2003 #1 D DimkaNewtown Freshman 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#.
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#.
Feb 22, 2003 #2 R Robby Ultimate Contributor Joined Nov 17, 2002 Messages 3,460 Location Montreal, Ca. For the right-click you can add a New context menu to the textbox. Ctrl+C can be handled by the Keypress event
For the right-click you can add a New context menu to the textbox. Ctrl+C can be handled by the Keypress event
Feb 22, 2003 #3 D DimkaNewtown Freshman Joined Jan 21, 2003 Messages 43 Location New York City So if I use the Handled property and set it to false, then the processing of the keypress would end there? Good idea about the new context box, thanks!
So if I use the Handled property and set it to false, then the processing of the keypress would end there? Good idea about the new context box, thanks!
Feb 22, 2003 #4 R Robby Ultimate Contributor Joined Nov 17, 2002 Messages 3,460 Location Montreal, Ca. Yes to the KeyPress....Handled =True
Feb 22, 2003 #5 D DimkaNewtown Freshman Joined Jan 21, 2003 Messages 43 Location New York City It was late, I meant true... thanks!