Disable Keys.

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
 
Back
Top