Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21127

[RESOLVED] keypress in textbox p me off

$
0
0
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
============================================
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:

Viewing all articles
Browse latest Browse all 21127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>