C# tabs control and Visual Studio questions

Posted on 2006-03-27
Last Modified: 2010-04-17
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
Question by:Vik Shah
    LVL 1

    Accepted Solution

    by: 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)


    Author Comment

    by:Vik Shah
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now