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

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

C# tabs control and Visual Studio questions

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
0
Vik Shah
Asked:
Vik Shah
1 Solution
 
rakshithksCommented:
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)

0
 
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
0

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