
NewBee VB5 textbox question
Hi Bill!
Try this.
In the textbox_KeyDown event you write:
If KeyCode=13 Then nexttextbox.SetFocus
KeyCode contains the ASCII code for the key pressed, 13 is the code for
enter.
I hope it works! /Ezy
Quote:
>I am writing a small program in VB5 that has a lot of textboxes for
>data input.
>I have the tabindex set to go to the next box when the Tab key is
>pressed.
>My question is : How do you set up the textbox to go to the next box
>by pressing the Enter
>key, instead of the Tab key ?
>Thanks for your Yime
> Bill Dannels