We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

C# tabs control and Visual Studio questions

Vik Shah
Vik Shah asked
on
Medium Priority
264 Views
Last Modified: 2010-04-17
hi
I have 2 questions
1. I have 4 forms on on one visual studio 2005 C# project, how can I select one form to be run first? right now, it run the first form I created
2. I create a form which has tab controls, how can I add existing forms to the tabs?

Thanks a lot
Comment
Watch Question

1.click on solution explorer , right click on the project , select properties, in the properties    pages --select General in left panel and in the right panel click on (not.set) of Startup object . here you select the form to start first

or

in the main function (generally it will be in the first form u added ) you will see the line like this
Application.Run(new Form1());
changed the Form1 with the form  name you want to start first.

2. since form is a toplevel control it is not possible to add form to a control (in your case it is tab control)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Vik ShahLead .Net Web Developer / Analyst

Author

Commented:
I am using Visual Studio 2005 , there is no General tab
but I have a file called: program.cs which has Application.Run  to chage the running form
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.