instance started?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dzemo

    #1

    instance started?

    how to ensure that my program can't start twice on same machine? Which code
    to use in Sub Main() ? Is there anything with Process Class
    thx


  • Ken Tucker [MVP]

    #2
    Re: instance started?

    Hi,



    Ken
    -----------------
    "Dzemo" <dzemo@wizard.b a> wrote in message
    news:eoqUuN4tFH A.3864@TK2MSFTN GP12.phx.gbl...[color=blue]
    > how to ensure that my program can't start twice on same machine? Which
    > code to use in Sub Main() ? Is there anything with Process Class
    > thx
    >[/color]


    Comment

    • Ken Tucker [MVP]

      #3
      Re: instance started?

      Hi,



      Ken
      -----------------
      "Dzemo" <dzemo@wizard.b a> wrote in message
      news:eoqUuN4tFH A.3864@TK2MSFTN GP12.phx.gbl...[color=blue]
      > how to ensure that my program can't start twice on same machine? Which
      > code to use in Sub Main() ? Is there anything with Process Class
      > thx
      >[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: instance started?

        "Dzemo" <dzemo@wizard.b a> schrieb:[color=blue]
        > how to ensure that my program can't start twice on same machine? Which
        > code to use in Sub Main() ? Is there anything with Process Class[/color]

        See:

        <URL:http://www.yoda.arachs ys.com/csharp/faq/#one.applicatio n.instance>

        The VB 2005 Windows Application Framework allows making an application
        "single instance" by checking a checkbox in the project properties.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: instance started?

          "Dzemo" <dzemo@wizard.b a> schrieb:[color=blue]
          > how to ensure that my program can't start twice on same machine? Which
          > code to use in Sub Main() ? Is there anything with Process Class[/color]

          See:

          <URL:http://www.yoda.arachs ys.com/csharp/faq/#one.applicatio n.instance>

          The VB 2005 Windows Application Framework allows making an application
          "single instance" by checking a checkbox in the project properties.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          Working...