Hi,
I've got a tabcontrol on a form with a few tabs at the top, how can I, through code, select the first tab.
When a button is pressed I just want the tabcontrol to go back to the first tab.
Thanks
Printable View
Hi,
I've got a tabcontrol on a form with a few tabs at the top, how can I, through code, select the first tab.
When a button is pressed I just want the tabcontrol to go back to the first tab.
Thanks
each tab on your tabcontrol has number starting with 0 for first tab.
to goto first tab you can do this:
TabControl1.SelectedIndex = 0
write this in button event. if you want to select any other tab give number of that tab.
lol, what am i like, I think I need some sleep.
Thanks for the answer.
Regarding the TabControlObjectName.Tabindex = # thanks for the simple reminder on how to do this, I was going through the ".Tabpages" property using all sorts of crazy methods (i.e. '.Show', '.Select', '.Focus') *sighs* none worked but just for FYI purpose's thanks again
:p :p :p :thumb: