How do you make the cursor move from top to bottom (text boxes)?
How do you make the cursor move from top to bottom (text boxes)?
(OP)
I am working on a data entry program for a project, and don't know how to make the cursor move from the top text box downward. Any suggestions? Thanks!
RE: How do you make the cursor move from top to bottom (text boxes)?
RE: How do you make the cursor move from top to bottom (text boxes)?
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then SendKeys "{TAB}"
End Sub
There are only a few keyboard events you can't intercept and control. Have fun.
RE: How do you make the cursor move from top to bottom (text boxes)?
(Alt255 is quite right as well - given the TabIndex thing)
Mike
---
Mike_Lacey@Cargill.Com
RE: How do you make the cursor move from top to bottom (text boxes)?
RE: How do you make the cursor move from top to bottom (text boxes)?
Start with the last textbox and work backwards. Set each textbox's TabIndex property to 0 (zero) as you go. When you run your form the top textbox should have focus and each tab key (or enter as previously mentioned) should then take you to the next textbox in order.