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. Closing the form

Closing the form

Scheduled Pinned Locked Moved C#
8 Posts 4 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.
  • N Offline
    N Offline
    Niiiissssshhhhhuuuuu
    wrote on last edited by
    #1

    Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu

    Q R S 3 Replies Last reply
    0
    • N Niiiissssshhhhhuuuuu

      Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu

      Q Offline
      Q Offline
      quiteSmart
      wrote on last edited by
      #2

      You can not close it nor dispose it. It is like the mother form. If the mother dies all the children will die too. You must keep on hiding it. Why are u insisting to completly close it?? Any good reason for that??

      N 1 Reply Last reply
      0
      • Q quiteSmart

        You can not close it nor dispose it. It is like the mother form. If the mother dies all the children will die too. You must keep on hiding it. Why are u insisting to completly close it?? Any good reason for that??

        N Offline
        N Offline
        Niiiissssshhhhhuuuuu
        wrote on last edited by
        #3

        Right now I am doing that only..But is this the only solution...??? Nishu

        Q 1 Reply Last reply
        0
        • N Niiiissssshhhhhuuuuu

          Right now I am doing that only..But is this the only solution...??? Nishu

          Q Offline
          Q Offline
          quiteSmart
          wrote on last edited by
          #4

          Yea i think so

          1 Reply Last reply
          0
          • N Niiiissssshhhhhuuuuu

            Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu

            R Offline
            R Offline
            Robert Rohde
            wrote on last edited by
            #5

            Hi, have a look at your Main method. Somewhere there you will find something like this:

            Application.Run(new FormStartup());

            Change it to something like this:

            new FormStartup().ShowDialog();
            Application.Run(new FormMainApp());

            When FormStartup is done just close it and the other form will appear. Robert

            Q 1 Reply Last reply
            0
            • R Robert Rohde

              Hi, have a look at your Main method. Somewhere there you will find something like this:

              Application.Run(new FormStartup());

              Change it to something like this:

              new FormStartup().ShowDialog();
              Application.Run(new FormMainApp());

              When FormStartup is done just close it and the other form will appear. Robert

              Q Offline
              Q Offline
              quiteSmart
              wrote on last edited by
              #6

              That sounds cool. I will try it.:)

              1 Reply Last reply
              0
              • N Niiiissssshhhhhuuuuu

                Hi Guys, In my application.. 1)I am having one starting form with progress bar which shows the loading process... 2)After completing the progess its starting the actual application form. 3)But when I am closing the first form with progess bar..its closing the whole application.. 4)Right now I am making the first form hidden, but I cant close it.. I completely want to close the form.... Thanx Nishu

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

                The functionality you're describing is called splash screen and there are some articles here on Codeproject that cover this topic and should give you some ideas how to implement this effectively and nicely. Just search the articles for "splash screen".


                "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

                N 1 Reply Last reply
                0
                • S Stefan Troschuetz

                  The functionality you're describing is called splash screen and there are some articles here on Codeproject that cover this topic and should give you some ideas how to implement this effectively and nicely. Just search the articles for "splash screen".


                  "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

                  N Offline
                  N Offline
                  Niiiissssshhhhhuuuuu
                  wrote on last edited by
                  #8

                  Thanx guys.... Nishu....

                  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