Manipulate TabControl from code
Posted on 2004-11-19
I have a TabControl on a form with three tabs.
Each TabPage has a set of controls on it.
Here's what I want to know how to do with code:
1. When the form is loaded, set the Focus to the first TextBox where ReadOnly = False (some TextBoxes have ReadOnly = True)
2. When the user gets to the last TextBox on a TabPage and tabs out of that TextBox, Switch to the Next TabPage.
From the answers to these, I should be able to extrapolate how to do the reverse (ie. switch to the Previous TabPage and set Focus to the Last TextBox on a TabPage).