[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

C# tabs control and Visual Studio questions

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
Vik Shah
Vik Shah
1 Solution
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


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)

Vik ShahLead .Net Web Developer / AnalystAuthor 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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now