Textbox should not accept data from clipboard like "when u press ctrl+V, data should not paste to textbox

Posted by Chikul under VB.NET category on | Views : 2437
Public Class ValidPaste

'On "KeyPress" Event, Clear the Clipboard
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
End Sub

End Class

Comments or Responses

Login to post response