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
Vik ShahLead .Net Web Developer / AnalystAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.