Your textbox should have a 'ShortcutsEnabled' property. Set that to false and the cut/paste context menu as well as Ctrl-V and Ctrl-C will be disabled. I use Visual Studio 2005 so that may be a 2005 thing. If you don't have that property you can disable a combination of keys. Here is the code needed to suppress Ctrl-V and Ctrl-C.
Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
'Suppress Ctrl-V and Ctrl-C
If e.Control AndAlso (e.KeyCode = Keys.V OrElse e.KeyCode = Keys.C) Then e.SuppressKeyPress = True
End Sub
Enter your message below
Sign in or Join us (it's free).