"Don" <an*******@discussions.microsoft.com> a écrit dans le message de
news:54**********************************@microsof t.com...
how do i bring tabpages, which are part of a tabcontrol, to the front on
the tabcontrol programmatically. I would like to bring specific tabpages to
the front depending on user actions with the user clicking on the tab.
thanks.
If the guy clic on the good tab, it will goes front.
But, if you want to specify a Tab, use this :
TabControl c; // your TabControl
TabPage p; //the one you want
c.SelectedPage = p;
You can also do :
c.SelectedPage = c.TabPages[goodnumber];
goodnumber is an int :o)
HTH