Home All Groups Group Topic Archive Search About

use a hyperlink to open a tab page

Author
6 Apr 2005 4:25 PM
lukegregory
I have a hyperlink menu on my main form. And would like some of the links to
open another form and bring a tabpage into focus. Does anyone know what the
command is to bring a tabpage to focus? (I have tried TabPage.Focus() )

Author
6 Apr 2005 4:31 PM
Herfried K. Wagner [MVP]
"lukegregory" <lukegreg***@discussions.microsoft.com> schrieb:
>I have a hyperlink menu on my main form. And would like some of the links
>to
> open another form and bring a tabpage into focus. Does anyone know what
> the
> command is to bring a tabpage to focus? (I have tried TabPage.Focus() )

Take a look at the tabcontrol's 'SelectedIndex' and 'SelectedTab'
properties.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>