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 August 18th, 2004, 08:35 PM
Registered User
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Mosquito109
Default Add a tabpage to a tabcontrol

I have a somewhat complicated (at least for me) question about tabpages on tabcontrols.

Program Scenario:
I have a form that asks the user a few questions, and based on their answers I want tabpages created. For instance, "What type of movies do you like?". The options the user can select from are "Horror", "Action", "Comedy", "Drama", "Sci-Fi". If the user, through checkbox's, selects any of these options, I would like to create tabpages for however many options they selected. I want these tabpages to contain textbox's, labels, combo box's, groupbox etc. etc. alreay set up for movie names, times they've seen it and so on. I know all the positions and locations that these controls are suppose to be on each tabpage. I would like to have each control on each tabpage created, named properly so I can save the information to a dataTable and the info is there everytime they open the program. I would like to also have the option of the user adding a tabpage later on if they wanted too.

So my main question is, if the user selects "Horror" and "Sci-Fi", how can I create only 2 tabpages, give them the correct names (Horror and Sci-Fi), add the controls where I need them with each control having the correct names for each tabpage created (i.e. txtMovieName_Horror and txtMovieName_SciFi?

Similar Threads
Thread Thread Starter Forum Replies Last Post
TabControl - many tabs, one TabPage sachappies C# 2005 4 December 22nd, 2007 08:46 PM
disable tabpage in windows application? Hannibal C# 2005 5 February 7th, 2007 12:44 PM
Tabpage in runtime g0dchild_85 C# 3 August 9th, 2006 09:29 AM
tabControl ColdFusion C# 7 May 15th, 2006 05:55 AM
Disabling Tabpage rajustha VB How-To 0 December 9th, 2003 10:11 PM

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