Stopping multiple instances of program from running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gobblegob
    New Member
    • Dec 2007
    • 133

    Stopping multiple instances of program from running

    I would like to know some code to check if my program is running, if so then not load.

    Thanks in advanced,
    Gobble.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    This topic has already been discussed here in the forum several times before . Please use the search box for related discussions.

    Comment

    • gobblegob
      New Member
      • Dec 2007
      • 133

      #3
      Sorry but i cant i cant find anything in this forum for stopping it happen in VB6.

      Gobble.

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #4
        Originally posted by gobblegob
        Sorry but i cant i cant find anything in this forum for stopping it happen in VB6.

        Gobble.
        Hi

        You can use

        [CODE=vb]If App.PrevInstanc e=True Then
        Msgbox "System is running"
        End If[/CODE]

        Rey Sean

        Comment

        • gobblegob
          New Member
          • Dec 2007
          • 133

          #5
          Originally posted by lotus18
          Hi

          You can use

          [CODE=vb]If App.PrevInstanc e=True Then
          Msgbox "System is running"
          End If[/CODE]

          Rey Sean
          Thankyou kind sir :)
          Gobble.

          Comment

          • lotus18
            Contributor
            • Nov 2007
            • 865

            #6
            Originally posted by gobblegob
            Thankyou kind sir :)
            Gobble.
            You're welcome .

            Comment

            Working...