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. Database & SysAdmin
  3. Database
  4. Run single instance of an application

Run single instance of an application

Scheduled Pinned Locked Moved Database
csharpquestion
4 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.
  • A Offline
    A Offline
    ashok_rgm
    wrote on last edited by
    #1

    Hi all, I have created windows application in c#, it is Sample.exe, If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe. Concept is simple if my windows media player is running say a movie file is being run. and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player. Is it possible to do so for my application, how can I apply same logic to my Sample.exe Thanks,

    ashok

    W C 2 Replies Last reply
    0
    • A ashok_rgm

      Hi all, I have created windows application in c#, it is Sample.exe, If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe. Concept is simple if my windows media player is running say a movie file is being run. and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player. Is it possible to do so for my application, how can I apply same logic to my Sample.exe Thanks,

      ashok

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Why post this on General Database forum instead of C# forum :confused: However, try searching the articles. Plenty of good samples: http://www.codeproject.com/info/search.aspx?artkw=application+single+instance&sbo=kw[^]

      The need to optimize rises from a bad design.My articles[^]

      1 Reply Last reply
      0
      • A ashok_rgm

        Hi all, I have created windows application in c#, it is Sample.exe, If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe. Concept is simple if my windows media player is running say a movie file is being run. and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player. Is it possible to do so for my application, how can I apply same logic to my Sample.exe Thanks,

        ashok

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        I don't see the connection with databases? You should be asking this in the C# forum.

        *Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter


        Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.

        A 1 Reply Last reply
        0
        • C Colin Angus Mackay

          I don't see the connection with databases? You should be asking this in the C# forum.

          *Developer Day Scotland - Free community conference *Colin Angus Mackay's Blog *Latest Scottish Developers Newsletter


          Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Remember that the force of gravity can go up as well as down.

          A Offline
          A Offline
          ashok_rgm
          wrote on last edited by
          #4

          Sorry for the inconvinience I forgot to change the forum........ :doh:

          ashok

          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