Page 1 of 1

TabControl selecting tab page with Button * Locked

Posted: Fri Feb 19, 2010 11:40 pm
by tvs praveen
Hi, Now i want to make a stuff using Button and TabControl, I mean add 1 TabCOntrol and 1 Button

Now add 2 TabPages in TabControl, Now if click the Button1 want to make to jump TabControl to TabPage2

How i want to make it??

I want to know it to make TabControl`s TabPages Buttons with my custom buttons `cos i din`t like default TabControl`s TabPages buttons

- Kindly :)

- Tvs Praveen wahooo;

Now i got help from Lewis! wahooo;

To know read it below, Posted by Lewis :D

Re: TabControl selecting tab page with Button

Posted: Sat Feb 20, 2010 12:04 am
by Lewis
Hello,
If you are navigating to Tab2 ( The name )
TabControl1.SelectedTab = TabControl1.TabPages.Item("Tab2")

Thanks,
Lewis

Re: TabControl selecting tab page with Button

Posted: Sat Feb 20, 2010 12:06 am
by Nery
If you have 3 TabPages in a TabControl:

To Select the second tab:
Code: Select all
TabControl1.SelectedTab = TabControl1.TabPages.Item(1)
To Select the third tab:
Code: Select all
TabControl1.SelectedTab = TabControl1.TabPages.Item(2)
To Select the first tab:
Code: Select all
TabControl1.SelectedTab = TabControl1.TabPages.Item(0)
The first tab is always "0" (TabIndex = TabNumber - 1)

Re: TabControl selecting tab page with Button

Posted: Sat Feb 20, 2010 12:08 am
by tvs praveen
lewisfroom wrote:
Hello,
If you are navigating to Tab2 ( The name )
TabControl1.SelectedTab = TabControl1.TabPages.Item("Tab2")

Thanks,
Lewis
Thanks a lot Lewis, I love you!!!!! wahooo;

A great help!!!!!!!!!!!!!!!!!!!111 :D :D :D wahooo; wahooo; wahooo;

- Tvs Praveen

Re: TabControl selecting tab page with Button

Posted: Sat Feb 20, 2010 12:10 am
by Nery
tvs praveen wrote:
lewisfroom wrote:
Hello,
If you are navigating to Tab2 ( The name )
TabControl1.SelectedTab = TabControl1.TabPages.Item("Tab2")

Thanks,
Lewis
Thanks a lot Lewis, I love you!!!!! wahooo;

A great help!!!!!!!!!!!!!!!!!!!111 :D :D :D wahooo; wahooo; wahooo;

- Tvs Praveen

And Nery >_<
Lewis posted while I was writting my post dunnno;

Re: TabControl selecting tab page with Button * Locked

Posted: Sat Feb 20, 2010 7:29 am
by hungryhounduk
***Please Give thanks for these HELPFULL Posts***

Re: TabControl selecting tab page with Button * Locked

Posted: Sat Feb 20, 2010 1:54 pm
by Nery
Topic Locked - Solved