this is my key press event
txtsend is the textbox i am having issue with this is what is happening
============================================ this is the textbox
<<<<<<<<< emty start point
|<<<<<<<<<<<<< the keyboard caret comes here instead of going to start point
============================================
when ever i click the buton manually the txtsend is fine but if i use the keypress then it gives me this problem help guys thanks:eek:
txtsend is the textbox i am having issue with this is what is happening
============================================ this is the textbox
<<<<<<<<< emty start point
|<<<<<<<<<<<<< the keyboard caret comes here instead of going to start point
============================================
Code:
Private Sub txtSend_KeyPress(KeyAscii As Integer)
Dim iClicks As Integer
If KeyAscii = 13 Then
iClicks = iClicks + 1 <<<<<<, this isnt needed i will remove it but this hasnt got anything to do with txtsend
cmdSend_Click
End If
End Sub
when ever i click the buton manually the txtsend is fine but if i use the keypress then it gives me this problem help guys thanks:eek: