Q. Make the Enter key invalid?
I have a form and need to make it so the user
cannot use the enter key.
A. You can use the forms KeyPress event to
see when the user hits the Enter key.
Private Sub Form_KeyPress(KeyAscii As Integer)
'if enter is pressed (ascii value 13)
'then set keyascii to null (ascii value 0)
If KeyAscii = 13 Then
KeyAscii = 0
End Sub
(17-Aug-98 Rich ryarnell@andrew.cmu.edu)
Downloads
In IE right-click and select 'Save Target As...' or in Netscape
right-click and select 'Save Link As...'
View Plain Text
Not Available
Not Available