Results 1 to 2 of 2

Thread: help on finding app instance

  1. #1
    Guest
    How do I check to see if there already is an instance of my applications running? Say I have an installer and I want to check to see if it's already running so that when the user clicks on the executable it doesn't do anything.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You can use App.PrevInstance to check it:
    Code:
    Private Sub Form_Load()
        If App.PrevInstance Then
            MsgBox "Application is already running."
            End
        End If
    End Sub

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