which way to "autotab" from textbox ?
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
my screen have some textbox, and I want to goto next textbox when I press ENTER (finish input) on one textbox (same textbox in VB6 Mircosoft Forms 2.0 object library) thanks any help! a beginner dungti
Put in a KeyPress handler for the edit control, and add the following code:
if (KeyAscii) = 13 then ' Enter Key SendKeys "{TAB}" Endif
This will trap the Enter key, and send a "Tab" to the form. Need to ensure that next control in the tab order is the next control youwant to go to.... Just out of interest - are you sure this is what you want to do? Not really standard windows behaviour, and precludes the use of enter as OK... "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox