I am using a rich text box to enter some variables.
I am restricting the user from entering some special characters.
But user is able to enter the same values by copying from a notepad and pasting it in text box.
How can I restrict the user from doing so?
Thanks,
Naresh
Hi to prevent pasting from clipboard in the
KeyDownevent handler you can check ifCtrlwas pressed and if so you sete.handledto true. this should work 🙂