
How to Select a Tab I Created in my Gui
When I click a button, I want the subroutine to be able to bring a certain tab to the front, thereby making it active.
How can I do that programatically?

GuiControl, Choose, ControlID, N: Sets the selection in a ListBox, DropDownList, ComboBox, or Tab control to be the Nth entry. N should be 1 for the first entry, 2 for the second, etc (if N is not an integer, the ChooseString method described below will be used instead). Unlike Control Choose, this sub-command will not trigger any g-label associated with the control unless N is preceded by a pipe character (even then, the g-label is triggered only when the new selection is different than the old one, at least for Tab controls). For example: GuiControl, Choose, MyListBox, |3.
To additionally cause a finishing event to occur (a double-click in the case of ListBox), include two leading pipes instead of one (this is not supported for Tab controls).

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.

when you run the gui
Gui, Add, Tab, Tab1§Tab2§§but how to do if you want to select the tab after a gLabel
cause:
GuiControl , Choose, Tab, §Tab2 ;info: i have a Gui, +Delimiter§don't work's!
How to do for select a Tab when the gui is already exist??

GuiControl , Choose, Tab, §2:?:

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
How to do for select a Tab when the gui is already exist??
If you don't specify a variable for the Tab control then you should use its ClassNN instead:
gui, add, button, gdo ; gui, add, tab, vmytab, tab1|tab2|| ; use variable gui, add, tab,, tab1|tab2|| gui show return do: ; guicontrol, choose, mytab, 1 ; uses the control's associated variable guicontrol, choose, systabcontrol321, 1 ; uses the control classNN return


don't work's for me.GuiControl , Choose, Tab, §2
but that is ok:
GuiControl , Choose, systabcontrol321, 2it's very Good
Merçi

