Results 1 to 4 of 4

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
    Fanatic Member dongaman's Avatar
    Join Date
    Aug 2001
    Location
    xi'an
    Posts
    616
    Check app.hInstance
    I am just aman.

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    hi
    App.Previnstance can be checked if u only want to give a msgbox but if u want to display the current running exe then u can use the code on this thread

    http://www.vbforums.com/showthread.p...p.previnstance

    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  4. #4
    Fanatic Member dongaman's Avatar
    Join Date
    Aug 2001
    Location
    xi'an
    Posts
    616
    Yeah,IT should be:App.Previnstance
    I am so sleepy
    I am just aman.

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