|
-
Jun 5th, 2009, 06:49 AM
#1
Thread Starter
Hyperactive Member
copy paste
how to stop the copy paste in vb.net
one text box to another text box
thanks
-
Jun 5th, 2009, 06:58 AM
#2
Re: copy paste
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.
-
Jun 5th, 2009, 07:25 AM
#3
Thread Starter
Hyperactive Member
Re: copy paste
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.
-
Jun 5th, 2009, 08:48 AM
#4
Re: copy paste
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
-
Jun 5th, 2009, 08:57 AM
#5
Re: copy paste
For non-password fields, set the ShortcutsEnabled = False
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|