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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to make single instance?

How to make single instance?

Scheduled Pinned Locked Moved C#
questiontutorial
18 Posts 10 Posters 1 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.
  • L Lost User

    This is typical person, that dont want to search, just ask it in CP and hope that someone answer....:(

    R Offline
    R Offline
    RanaSohail
    wrote on last edited by
    #8

    Don't point out or raise comments on anyone like that. This question is not just learning for me it can save any other person's time. you are not a child my dear.

    L 1 Reply Last reply
    0
    • L Lost User

      This is typical person, that dont want to search, just ask it in CP and hope that someone answer....:(

      R Offline
      R Offline
      RanaSohail
      wrote on last edited by
      #9

      i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here?

      J L 2 Replies Last reply
      0
      • D David Skelly

        At the top of the page you will see a box labelled Search. Type single instance into this box. Select Articles / Quick Answers in the dropdown next to it. Click the Go! button.

        R Offline
        R Offline
        RanaSohail
        wrote on last edited by
        #10

        Thanks you all :)

        1 Reply Last reply
        0
        • R RanaSohail

          i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here?

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #11

          Sohial A Rana wrote:

          i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here

          :rolleyes:

          1 Reply Last reply
          0
          • R RanaSohail

            mention please...! :)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #12

            Do you have trouble clicking the Search button ?

            1 Reply Last reply
            0
            • R RanaSohail

              Don't point out or raise comments on anyone like that. This question is not just learning for me it can save any other person's time. you are not a child my dear.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #13

              Sohial A Rana wrote:

              you are not a child my dear.

              But it seems you are a child asking others to search for you.

              1 Reply Last reply
              0
              • R RanaSohail

                i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #14

                Sohial A Rana wrote:

                i know every type of problem can be solved via search engine. if every problem solve by searching then why people raise questions here?

                People come here only if they do not find the information through search engines. Google gave me 1,76,000 results for "C# Single instance", the top two of which are CP articles. If you had even tried this, you wouldn't have posted this question here.

                1 Reply Last reply
                0
                • R RanaSohail

                  hello all, Application.Run(new Form1()); How can i start an application so that other instance don't start of the same application. regard, sohail

                  V Offline
                  V Offline
                  vtchris peterson
                  wrote on last edited by
                  #15

                  This problem sent me on various run arounds... the best solution (by far) that I found was: http://dotnetperls.com/single-instance-windows-form[^]

                  R 1 Reply Last reply
                  0
                  • R RanaSohail

                    hello all, Application.Run(new Form1()); How can i start an application so that other instance don't start of the same application. regard, sohail

                    C Offline
                    C Offline
                    Cracked Down
                    wrote on last edited by
                    #16

                    Try using Mutex for inter process communication it is best and as easy as needs only 3 lines of code :)

                    1 Reply Last reply
                    0
                    • R RanaSohail

                      hello all, Application.Run(new Form1()); How can i start an application so that other instance don't start of the same application. regard, sohail

                      J Offline
                      J Offline
                      joelwms
                      wrote on last edited by
                      #17

                      This article (A Single Instance Application which Minimizes to the System Tray when Closed) has information on making single instance forms in C# using mutex.

                      1 Reply Last reply
                      0
                      • V vtchris peterson

                        This problem sent me on various run arounds... the best solution (by far) that I found was: http://dotnetperls.com/single-instance-windows-form[^]

                        R Offline
                        R Offline
                        RanaSohail
                        wrote on last edited by
                        #18

                        I have done it. Thanks for all :)

                        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