Having 1 instance of a program only...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Having 1 instance of a program only...

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Having 1 instance of a program only...

    [Originally posted by OJ]

    Hello,

    I want only one instance of my application to be running, so if another is started up, it should switch to the currently running one and then end.

    How do I switch to the already running one? (This is all I need)

    Thx.

    - OJ

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Having 1 instance of a program only...

    [Originally posted by Doug Heeren]

    app.PrevInstance will let you know if there is another instance running.

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Having 1 instance of a program only...

    [Originally posted by FreeVBCode.com]

    For a complete example, see <A HREF = 'http://www.freevbcode.com/ShowCode.Asp?ID=71'>http://www.freevbcode.com/ShowCode.Asp?ID=71</A>.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center