Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
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 29th, 2004, 09:37 PM
Authorized User
 
Join Date: Oct 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default TabControl - Programatically 'opening' tabpages

Is it possible to programatically open a TabControl to a specific TabPage? You can programatically detect which page is open using:

 Dim x As Integer
    For x = 0 To TabControl1.TabPages.Count - 1
         If TabControl1.TabPages(x).Visible = True Then
                'Do something
                'end sub
         End If
    Next

But the logic doesn't work in reverse. I can't use the visible property to set which page is open. I have unsucesssully tried a number of other properties/methods but maybe I am barking up the wrong tree...

Any ideas would be greatly appreciated.

 
Old November 30th, 2004, 01:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

See if this helps:

http://p2p.wrox.com/topic.asp?TOPIC_ID=21734

J
 
Old November 30th, 2004, 02:58 AM
Authorized User
 
Join Date: Oct 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perfect! Thank you!:D






Similar Threads
Thread Thread Starter Forum Replies Last Post
Toolstrip and TabControl pamskate5 Visual Basic 2005 Basics 0 October 12th, 2006 04:35 PM
need help on tabcontrol Haydeé VB.NET 2002/2003 Basics 1 May 23rd, 2006 04:31 AM
tabControl ColdFusion C# 7 May 15th, 2006 05:55 AM
Managing TabPages events MAKO C# 2 March 1st, 2006 07:04 AM
TabPages zorglub76 C# 0 January 12th, 2006 05:10 AM





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