tab control

jasonpeinko
10-18-2006, 10:39 PM
I have a button under the Tutorial Page tab. When you push the button i want it to go to the tab Tutorial_page_1. How can i do that?

blacknight_VB
10-18-2006, 10:42 PM
If you are using the tab control object, you can use:
Tabname.Tab = x
Replace x with the number the tab is. The very first tab is 0.

jasonpeinko
10-18-2006, 10:46 PM
my first tab is Tutorial. and the first page is Tutorial page so what would i use for Tabname? When i try Tutorial.tab It says there is not command .Tab

Im using vb express if that has anything to do with the proble.

blacknight_VB
10-18-2006, 10:49 PM
Are you talking about a tab dialog within your visual basic form?
If you are using Visual basic Professional / learning or enterprise, Tabobjectname.Tab = Number should work.

jasonpeinko
10-18-2006, 10:51 PM
does not work. Im using visual basic 2005 express edition.

blacknight_VB
10-18-2006, 10:54 PM
Ah Right. Okay. I am unfarmiliar with VB 2005. Is it similar to VB.NET?

jasonpeinko
10-18-2006, 10:56 PM
it uses mircosoft .net framework 2

blacknight_VB
10-18-2006, 11:00 PM
Maybe it would be better to post your question in a forum that specifically relates to VB 2005 or you could try the XVB .NET section. Sorry I can't be of help.

jwakeman
10-30-2006, 12:12 PM
SelectedIndex seems to be the VB2005 equivalent.

For example:

Me.TabControl1.SelectedIndex = 2

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum