Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 March 31st, 2006, 09:21 AM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with tabcontrol

I have a Problem with a tab control to display the next tabpage when the user presses the button

LT Bebeza
 
Old April 1st, 2006, 10:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You did not provide much information! Which button? Just set the TabControls SelectedIndex property if you want to change the TabPage.

Jacob.
 
Old July 2nd, 2006, 07:11 PM
Registered User
 
Join Date: Dec 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just get the current tab index, store it in an integer, increment the integer by 1, and reset the selectedIndex:

(Visual C++.Net)
int x = tabControl1->SelectedIndex;
tabControl1->SelectedIndex = x+1;

Place this under a button_Click event, and the next Tabpage will be displayed.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Tabcontrol Problem msbsam ASP.NET 2.0 Professional 0 June 26th, 2008 06:31 AM
TabControl - many tabs, one TabPage sachappies C# 2005 4 December 22nd, 2007 08:46 PM
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





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