Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. setting start up form

setting start up form

Scheduled Pinned Locked Moved C#
csharptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarojkumarjena
    wrote on last edited by
    #1

    how to set the particular form as a start up form in .net windows application in .net 2005

    S 1 Reply Last reply
    0
    • S sarojkumarjena

      how to set the particular form as a start up form in .net windows application in .net 2005

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      There is a code file called Program.cs that defines the main entry point of the application. The start up form is the one that gets passed to the Application.Run method.

      static void Main()
      {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);
      Application.Run(new Form1());
      }


      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

      www.troschuetz.de

      S 1 Reply Last reply
      0
      • S Stefan Troschuetz

        There is a code file called Program.cs that defines the main entry point of the application. The start up form is the one that gets passed to the Application.Run method.

        static void Main()
        {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new Form1());
        }


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        S Offline
        S Offline
        sarojkumarjena
        wrote on last edited by
        #3

        need it design time not at run time

        S C 2 Replies Last reply
        0
        • S sarojkumarjena

          need it design time not at run time

          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          sarojkumarjena wrote:

          need it design time not at run time

          :confused: What's that supposed to mean? What is a start up form at design time? :confused:


          "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

          www.troschuetz.de

          1 Reply Last reply
          0
          • S sarojkumarjena

            need it design time not at run time

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            This is design time, it just can't be done in the designer. You have to write actual code to change what form is run first.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups