1 running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patr0805
    New Member
    • Sep 2007
    • 48

    1 running

    I need a code for allready running.
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    #2
    Originally posted by patr0805
    I need a code for allready running.
    What type of code you want.
    Explain your Question to get right answer.

    Comment

    • patr0805
      New Member
      • Sep 2007
      • 48

      #3
      I need a code, so my vb.net application can detect if it allready running and if it allready running then the application will close

      Comment

      • hariharanmca
        Top Contributor
        • Dec 2006
        • 1977

        #4
        Originally posted by patr0805
        I need a code, so my vb.net application can detect if it allready running and if it allready running then the application will close
        This will help you.
        [CODE=vb]If App.PrevInstanc e Then End[/CODE]

        Comment

        • QVeen72
          Recognized Expert Top Contributor
          • Oct 2006
          • 1445

          #5
          Hi,

          This code is for VB.net:

          [code=vb]
          If Ubound(Diagnost ics.Process.Get ProcessesByName (Diagnostics.Pr ocess.GetCurren tProcess).Proce ssName)) > 0 Then
          End
          End If
          [/code]

          REgards
          Veena

          Comment

          Working...