Results 1 to 2 of 2

Thread: How can I check for my running program instance?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    12

    How can I check for my running program instance?

    How can I check for my running program instance? Lets say I am running program prog1.exe, If I run it again, I want to have a messaga saying that the program is already running, How can Chech for this. Any hint is appretiated. Thanks.
    hajar

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Code:
    Private Sub Form_Load()
        If App.PrevInstance = True Then 
            Msgbox "This program is already running"
            Unload me
            Set form1 = nothing
        End If
    End Sub

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width