Hi
I am using Keypress(keyAsc ii as integer) like this
Private Sub txtBox_keypress (KeyAscii As Integer)
txtBox.SelStart = 0
txtBox.SelLengt h = Len(txtBox.Text )
If KeyAscii = 13 Then
Call SaveContents
but the problem is I can only use this if the contents of txtbox are 1 character long otherwise it resets itself when it checks if I have pressed the return key.
Also is the an Ascii specific code for the Enter key on the NumberPad.
Frank
I am using Keypress(keyAsc ii as integer) like this
Private Sub txtBox_keypress (KeyAscii As Integer)
txtBox.SelStart = 0
txtBox.SelLengt h = Len(txtBox.Text )
If KeyAscii = 13 Then
Call SaveContents
but the problem is I can only use this if the contents of txtbox are 1 character long otherwise it resets itself when it checks if I have pressed the return key.
Also is the an Ascii specific code for the Enter key on the NumberPad.
Frank
Comment