Results 1 to 4 of 4

Thread: check if the application is currently open

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    israel
    Posts
    13
    i made an application and i dont want to able openning the application again while it is running, how shel i do it
    thanks for all
    beni y

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Look up this app.PrevInstance
    Chemically Formulated As:
    Dr. Nitro

  3. #3
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Beni,

    ' Check If there is already Running instance.
    If App.PrevInstance Then
    MsgBox "Application Already Running"
    Unload Me
    End
    else
    MsgBox "Do your..."
    End If

  4. #4
    Guest
    Most likely, you should put the code in Sub main() in a bas file or at the very top of Form_Load or even Form_Activate.

    If you want to keep only one instance and if another is loaded, give it focus, like vb 3.0 does: Have only one instance and give the current one focus.


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