how to restrict paste option
-
hey guys i want to restrict paste option for my textbox control in windows application. how do i do this in c#
-
hey guys i want to restrict paste option for my textbox control in windows application. how do i do this in c#
-
hey guys i want to restrict paste option for my textbox control in windows application. how do i do this in c#
You may be able to implement this by (a) removing the Paste item from the textbox's context menu (accessible using the
ContextMenu
property) and (b) handling theKeyPress
event to ignore Ctrl/V. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com -
Trap the Ctrl+V event on the textbox and clear the Clipboard before the paste event Regards, Pramod
-
hey guys i want to restrict paste option for my textbox control in windows application. how do i do this in c#
Have a look at this[^] article. It traps the paste event (overrides WndProc and handles WM_PASTE), which is what you wanted. Regards Senthil _____________________________ My Blog | My Articles | WinMacro