Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2004, 11:55 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tab Control

I am using a tab control, I want to be able to give a certain page focus and make it visible, how do I do this I don't seem to be able to access a visible property.

Thanks

Louisa

 
Old November 5th, 2004, 12:22 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

off the top of my head, I think you'd use the SelectedIndex property of the tab control to select a page

 
Old November 5th, 2004, 12:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You can do it a couple of ways:

'TabPage3 is the name of the tab
TabControl1.SelectedTab = TabPage3

OR

'indexed starting at 0
TabControl1.SelectedIndex = 2

This will give you the 3rd tab.

J
 
Old November 10th, 2004, 06:55 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks works perfectly

Louisa

 
Old September 26th, 2005, 09:43 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for asking (and answering) this question. I've leveraged the solution and it works great.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable a tab on a tab control. dbradley VB.NET 6 April 14th, 2011 10:04 AM
tab control amey.agnihotri C# 2005 1 June 19th, 2007 04:10 AM
Calendar Control with Tab Control Slicemahn Access 1 June 12th, 2006 10:35 PM
Tab control Bhanu VS.NET 2002/2003 2 March 6th, 2005 04:12 AM
Tab Control Bhanu .NET Framework 2.0 1 December 2nd, 2004 07:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.