Disable Keys.

cpopham

Member
Joined
Jun 3, 2004
Messages
20
Programming Experience
1-3
You can look at the Sender and if the sender is Alt then set e.handled to true. I have not tried it with Alt, but it may look something like this:

Private sub myTextBox_KeyPress(ByVal sender as object, ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles myTextBox.KeyPress

If e.KeyChar = ControlChars.Alt Then
e.Handled = True
End If

End Sub
 
Top Bottom