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
>>
>>