Results 1 to 3 of 3

Thread: Instance

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Location
    Viet Nam
    Posts
    98

    Instance

    I want to prevent two instances of a VB application run at one time.How can i do that?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Code:
    Public Sub main()
        If App.PrevInstance Then
            Exit Sub
        End If
    End Sub
    -= a peet post =-

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Location
    Viet Nam
    Posts
    98
    Thanks for your answer.
    Another question:
    How can I show the previous Instance if it's minimized?

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