I would like to connect a tabpage on a tabcontrol with a function key.
I know how to capture a function key. I can programmatically find my
selected tabpage.
Mytabpage.focus does not seem to do anything.
Do I need to create a tabpage click event?

--
Arne Garvander
Certified Geek
Professional Data Dude

Re: Tabcontrol focus by Erik

Erik
Wed Feb 13 15:23:20 CST 2008

Just use tabControl.SelectedTab = [tabname]
And the tabpage will be activated

"Arne Garvander" <ArneGarvander@discussions.microsoft.com> schreef in
bericht news:471388E6-D46C-4C6A-870C-C82B015499C1@microsoft.com...
> I would like to connect a tabpage on a tabcontrol with a function key.
> I know how to capture a function key. I can programmatically find my
> selected tabpage.
> Mytabpage.focus does not seem to do anything.
> Do I need to create a tabpage click event?
>
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude


Re: Tabcontrol focus by ArneGarvander

ArneGarvander
Wed Feb 13 15:55:02 CST 2008

I tried
MyTabControl.SelectedTab.name = "F4"
when I had a tabpage named "F4", but nothing happened.
Next time I pressed F4 my selectedTab hade the name "F4", but the original
tabpage is still visible. (Maybe i just renamed my original tabpage with my
new code)
--
Arne Garvander
Certified Geek
Professional Data Dude


"Erik Haverkamp" wrote:

> Just use tabControl.SelectedTab = [tabname]
> And the tabpage will be activated
>
> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> schreef in
> bericht news:471388E6-D46C-4C6A-870C-C82B015499C1@microsoft.com...
> > I would like to connect a tabpage on a tabcontrol with a function key.
> > I know how to capture a function key. I can programmatically find my
> > selected tabpage.
> > Mytabpage.focus does not seem to do anything.
> > Do I need to create a tabpage click event?
> >
> > --
> > Arne Garvander
> > Certified Geek
> > Professional Data Dude
>
>

Re: Tabcontrol focus by Erik

Erik
Thu Feb 14 01:57:49 CST 2008

Hi Arne,

Change MyTabControl.SelectedTab.name = "F4"
into MyTabControl.SelectedTab = "F4"

And things should work fine.

Erik

"Arne Garvander" <ArneGarvander@discussions.microsoft.com> schreef in
bericht news:16F871B9-6E00-466A-A43F-F2411863970B@microsoft.com...
> I tried
> MyTabControl.SelectedTab.name = "F4"
> when I had a tabpage named "F4", but nothing happened.
> Next time I pressed F4 my selectedTab hade the name "F4", but the original
> tabpage is still visible. (Maybe i just renamed my original tabpage with
> my
> new code)
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude
>
>
> "Erik Haverkamp" wrote:
>
>> Just use tabControl.SelectedTab = [tabname]
>> And the tabpage will be activated
>>
>> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> schreef in
>> bericht news:471388E6-D46C-4C6A-870C-C82B015499C1@microsoft.com...
>> > I would like to connect a tabpage on a tabcontrol with a function key.
>> > I know how to capture a function key. I can programmatically find my
>> > selected tabpage.
>> > Mytabpage.focus does not seem to do anything.
>> > Do I need to create a tabpage click event?
>> >
>> > --
>> > Arne Garvander
>> > Certified Geek
>> > Professional Data Dude
>>
>>

Re: Tabcontrol focus by Ravi

Ravi
Sun Feb 17 11:34:47 CST 2008

Any of these should work:

MyTabControl.SelectedTab = MyTabPage;
MyTabControl SelectTab (MyTabPage);

Hope this helps,

/ravi

------------------
"Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
news:471388E6-D46C-4C6A-870C-C82B015499C1@microsoft.com...
>I would like to connect a tabpage on a tabcontrol with a function key.
> I know how to capture a function key. I can programmatically find my
> selected tabpage.
> Mytabpage.focus does not seem to do anything.
> Do I need to create a tabpage click event?
>
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude