I want to Restrictthe user to past the text in the textbox not write in the textbox
I want toRestrictthe user to past the text in the textbox not write in the textbox is it possible?
Thanks
I want toRestrictthe user to past the text in the textbox not write in the textbox is it possible?
Thanks
There are several way's to do this. It depends on how you will allow the user to past data.
1) You can disable all user input and control the pasting yourself by using the Clipboard class in the System.Windows namespace.
2) you can catch the KeyDown event of the textbox and filter out all the key or key combinations you don't want. And so allow only the right mouse button to paste (or any key combination you allowed)