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 know numeric of instance...

How to know numeric of instance...

Scheduled Pinned Locked Moved C#
helpquestioncsharptutorial
3 Posts 2 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.
  • H Offline
    H Offline
    Hoang Dung
    wrote on last edited by
    #1

    Hi, I write an application in C# but I don't want user run it more one instance. How do I know numeric of instance of this app when user fire it? And how to I resolve this problem? Please help me. Thanks. H.Dung

    J 1 Reply Last reply
    0
    • H Hoang Dung

      Hi, I write an application in C# but I don't want user run it more one instance. How do I know numeric of instance of this app when user fire it? And how to I resolve this problem? Please help me. Thanks. H.Dung

      J Offline
      J Offline
      jspano
      wrote on last edited by
      #2

      The standard way is to use a mutex to control access. See this article for a class that does it. http://www.codeproject.com/csharp/cssingprocess.asp[^]

      H 1 Reply Last reply
      0
      • J jspano

        The standard way is to use a mutex to control access. See this article for a class that does it. http://www.codeproject.com/csharp/cssingprocess.asp[^]

        H Offline
        H Offline
        Hoang Dung
        wrote on last edited by
        #3

        Hi, Thanks you very much. H.Dung

        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