Disable Textbox Paste Option in Winform

27 May

If you want to disable paste option on text box in Winform Application then this code very helpful for you.

Private Sub txtbarcode_KeyDown(sender As Object, e As KeyEventArgs) Handles txtArabicName.KeyDown

If e.Control And e.KeyValue = 86 Then
e.Handled = True
e.SuppressKeyPress = True
End If
End Sub


private void txtbarcode_KeyDown(object sender, KeyEventArgs e)
	if (e.Control & e.KeyValue == 86) {
		e.Handled = true;
		e.SuppressKeyPress = true;

Leave a comment

Posted by on May 27, 2014 in WinForm


Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: