Results 1 to 4 of 4

Thread: Inhibit new program instance opening

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    8

    Post

    How can I inhibit the openning of a new program instance whenever I double-click on my program exec Icon and one instance of the same program is already running (even if it is minimized in that moment)?
    I'd like, instead, to pass the control to the already opened instance...
    Could anybody help me ?
    Thanks in advance

  2. #2
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87

    Post

    If App.PrevInstance = True Then

    with this you can know if a vb instance of a program is already running

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    8

    Post

    It works and inhibits the activation of a new instance of the same executable code.
    But, as a second step, how can I pass the control to the executable program that is already active and is minimized or lays hidden somewhere in my win95 screen ?
    Thanks in advance...

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    Check out http://www.vb-world.net/tips/tip125.html

    It's exactly what you're after.

    Regards,

    ------------------
    - Chris
    [email protected]
    If it ain't broke - don't fix it

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