For move between control, default we use key TAB, we can change these key with SendKeys function. way work with detecting to be press key enter, we send key tab at program.
you can detecting with putting the cutting program at KeyPress event procedure with ascertaining whether value from KeyAscii paramete=13
code:
----------Cut here-----------------------
Sub Text1_Keypress(KeyAscii as Integer)
If KeyAscii = 13 then
SendKeys "{TAB}"
KeyAscii = 0
End If
End sub
----------Finish--------------------------
MOVE BETWEEN CONTROL WITH ENTER [VB 6.0 TIPS]
Diposting oleh Admin | Monday, June 30, 2008 | Vb tips and trick | 0 komentar »
Subscribe to:
Post Comments (Atom)
0 komentar
Post a Comment