how to stop the copy paste in vb.net
one text box to another text box
thanks
Printable View
how to stop the copy paste in vb.net
one text box to another text box
thanks
Do you want to only stop copy/paste or any editing too? I don't see a reason.
To make it uneditable (which also prevents copy/paste), set the "Enabled" property of textbox to False.
i want to prevent the copy paste of password text and other inportant text boxes.
so i want to make a class and call it on text box in which i want to protect.
For password fields, it is the default behavior. i.e. Copying from password field is not allowed.
To set the textbox as password field, you may specify a PasswordChar="*" (or whatever you want) or set the property UseSystemPasswordChar=True
Attachment 71360
For non-password fields, set the ShortcutsEnabled = False