Home All Groups Group Topic Archive Search About
Author
13 Dec 2006 8:08 PM
Newbie Coder
Hiya All

I have a tab Control with 5 tabs (index 0 - 4)

I have disabled tabs 1-4 & just left 0 enabled. How do I click on something
like a button on tab 0 which then brings tab1 into view/focused?

Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
but I also need it to select tab 1

I am using VB.NET 2003

TIA

Author
13 Dec 2006 9:06 PM
Herfried K. Wagner [MVP]
"Newbie Coder" <newbie_coder@pleasespamme.com> schrieb:
> I have a tab Control with 5 tabs (index 0 - 4)
>
> I have disabled tabs 1-4 & just left 0 enabled. How do I click on
> something
> like a button on tab 0 which then brings tab1 into view/focused?

Check out the control's 'SelectedIndex'/'SelectedTab' properties.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
14 Dec 2006 12:43 PM
Newbie Coder
Herfried

Your suggestion doesn't work

Thanks though

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23FHPMqvHHHA.816@TK2MSFTNGP06.phx.gbl...
> "Newbie Coder" <newbie_coder@pleasespamme.com> schrieb:
> > I have a tab Control with 5 tabs (index 0 - 4)
> >
> > I have disabled tabs 1-4 & just left 0 enabled. How do I click on
> > something
> > like a button on tab 0 which then brings tab1 into view/focused?
>
> Check out the control's 'SelectedIndex'/'SelectedTab' properties.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
Author
14 Dec 2006 5:13 PM
Mick Doherty
How did you try to implement Herfried's suggestion?

....to select the TabPage at Index 1 assuming your TabControl is named
TabControl1:

TabControl1.SelectedIndex = 1

Show quoteHide quote
"Newbie Coder" <newbie_coder@pleasespamme.com> wrote in message
news:eAQ5F13HHHA.2632@TK2MSFTNGP06.phx.gbl...
> Herfried
>
> Your suggestion doesn't work
>
> Thanks though
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:%23FHPMqvHHHA.816@TK2MSFTNGP06.phx.gbl...
>> "Newbie Coder" <newbie_coder@pleasespamme.com> schrieb:
>> > I have a tab Control with 5 tabs (index 0 - 4)
>> >
>> > I have disabled tabs 1-4 & just left 0 enabled. How do I click on
>> > something
>> > like a button on tab 0 which then brings tab1 into view/focused?
>>
>> Check out the control's 'SelectedIndex'/'SelectedTab' properties.
>>
>> --
>>  M S   Herfried K. Wagner
>> M V P  <URL:http://dotnet.mvps.org/>
>>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>>
>
>
Author
14 Dec 2006 5:20 AM
Cor Ligthert [MVP]
Hi,

Everything you wanted to know about the tabcontrol

http://dotnetrix.co.uk/tabcontrols.html

Cor

Show quoteHide quote
"Newbie Coder" <newbie_coder@pleasespamme.com> schreef in bericht
news:OxSy7IvHHHA.1784@TK2MSFTNGP06.phx.gbl...
> Hiya All
>
> I have a tab Control with 5 tabs (index 0 - 4)
>
> I have disabled tabs 1-4 & just left 0 enabled. How do I click on
> something
> like a button on tab 0 which then brings tab1 into view/focused?
>
> Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
> but I also need it to select tab 1
>
> I am using VB.NET 2003
>
> TIA
>
>
Author
14 Dec 2006 12:43 PM
Newbie Coder
Thanks Cor

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:OsA3Q9zHHHA.1240@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> Everything you wanted to know about the tabcontrol
>
> http://dotnetrix.co.uk/tabcontrols.html
>
> Cor
>
> "Newbie Coder" <newbie_coder@pleasespamme.com> schreef in bericht
> news:OxSy7IvHHHA.1784@TK2MSFTNGP06.phx.gbl...
> > Hiya All
> >
> > I have a tab Control with 5 tabs (index 0 - 4)
> >
> > I have disabled tabs 1-4 & just left 0 enabled. How do I click on
> > something
> > like a button on tab 0 which then brings tab1 into view/focused?
> >
> > Tabs 0-4 are all visible. The button on Tab 0 will enable the other
tabs,
> > but I also need it to select tab 1
> >
> > I am using VB.NET 2003
> >
> > TIA
> >
> >
>
>
Author
14 Dec 2006 5:23 PM
Mick Doherty
....except this.

See my response above.

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:OsA3Q9zHHHA.1240@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> Everything you wanted to know about the tabcontrol
>
> http://dotnetrix.co.uk/tabcontrols.html
>
> Cor
>
> "Newbie Coder" <newbie_coder@pleasespamme.com> schreef in bericht
> news:OxSy7IvHHHA.1784@TK2MSFTNGP06.phx.gbl...
>> Hiya All
>>
>> I have a tab Control with 5 tabs (index 0 - 4)
>>
>> I have disabled tabs 1-4 & just left 0 enabled. How do I click on
>> something
>> like a button on tab 0 which then brings tab1 into view/focused?
>>
>> Tabs 0-4 are all visible. The button on Tab 0 will enable the other tabs,
>> but I also need it to select tab 1
>>
>> I am using VB.NET 2003
>>
>> TIA
>>
>>
>
>