Results 1 to 2 of 2

Thread: Checking for already running instance

  1. #1

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Checking for already running instance

    Hello everybody

    How can I check whether my application is already running?

    thx, in advance

    George Papadopoulos
    SteadFast!

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Checking for already running instance

    In the load event of the first form or in the sub main in your project put this....

    VB Code:
    1. If App.PrevInstance = True Then
    2.     MsgBox "Application already running."
    3.     End
    4. End If
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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