Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 5th, 2004, 11:55 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: , Kent, United Kingdom.
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

Reply With Quote
  #2 (permalink)  
Old November 5th, 2004, 12:22 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: York, , United Kingdom.
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

Reply With Quote
  #3 (permalink)  
Old November 5th, 2004, 12:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old November 10th, 2004, 06:55 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: , Kent, United Kingdom.
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks works perfectly

Louisa

Reply With Quote
  #5 (permalink)  
Old September 26th, 2005, 09:43 AM
Registered User
 
Join Date: Sep 2005
Location: Springwater, NY, USA.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:21 AM.


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