Lexian,
I tried suppressing the key event if a user press ctrl-c or ctrl-v and it worked nicely. That will take care of people pasting in that manner. Just incorporate this code into your keydown event
'Suppress ctrl-c and ctrl-v
If e.Control AndAlso (e.KeyCode = Keys.V OrElse e.KeyCode = Keys.C) Then e.SuppressKeyPress = True
I was able to suppress the context menu using this code.
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
'Suppress the message to display the context menu
If m.Msg <> 517 Then MyBase.WndProc(m)
End Sub
Enter your message below
Sign in or Join us (it's free).