Results 1 to 2 of 2

Thread: Couple Instance

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    how to end program if there is an .exe copy of the program that is already runnig?

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    //

    ' See if there is already and instance.
    If App.PrevInstance Then
    ' Activate the previous instance
    AppActivate App.Title

    ' Send a key (here SHIFT-key) to set the
    ' form from the previous instance to the
    ' top of the screen.
    SendKeys "+", True

    ' Terminate the new instance
    Unload Me
    End If
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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