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
 
Back
Top