move to next tab

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone have a link or code that moves the focus to the first control of
the next tab on a tabbed form? (so the user can continue typing rather than
clicking the tab). Thanks. I've had this before but lost it.
 
smk23 said:
Does anyone have a link or code that moves the focus to the first
control of the next tab on a tabbed form? (so the user can continue
typing rather than clicking the tab). Thanks. I've had this before
but lost it.

Add a tiny (but visible = true) TextBox to your TabPage and make it last in the
TabOrder. In its GotFocus event have a line of code that sets focus to the
desired control on the next TabPage.
 
On the LostFocus event of the last field in the first Tab, you can set the
focus to the first field in the second TAB, just as you set a focus to any
field in the form

Me.FieldName.SetFocus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top