Tag Archives: Disabling Copy/Paste in a Textbox control

Disable Textbox Paste Option in Winform

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: , ,