Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Checking what's already running?
Old
  (#1)
D & J G
Guest
 
Posts: n/a
Default Checking what's already running? - 06-04-2007, 10:30 AM

Bit of a newbie question..
Is there a VB6 way of telling what is already running? E.g. if a VB6
program has been minimized and selected again, the minimized one maximizes,
instead of having the same thing running twice simultaneously.
TIA
Don


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Checking what's already running?
Old
  (#2)
Dean Earley
Guest
 
Posts: n/a
Default Re: Checking what's already running? - 06-04-2007, 10:30 AM

D & J G wrote:
> Bit of a newbie question..
> Is there a VB6 way of telling what is already running? E.g. if a VB6
> program has been minimized and selected again, the minimized one maximizes,
> instead of having the same thing running twice simultaneously.


You can use App.PrevInstance to see if the same executable is already
running.
The easy way to activate the other version is AppActivate and SendKeys,
but the proper way is to use some form of IPC like DDE.

--
Dean Earley (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Checking what's already running?
Old
  (#3)
Bruce A. Wilkinson
Guest
 
Posts: n/a
Default Re: Checking what's already running? - 06-04-2007, 10:31 AM

You can use the "previousinstance" boleen parameter to detect if your application is already running.
"D & J G" <EMAIL REMOVED> wrote in message news:44f541db$0$22363$EMAIL REMOVED u...
Bit of a newbie question..
Is there a VB6 way of telling what is already running? E.g. if a VB6
program has been minimized and selected again, the minimized one maximizes,
instead of having the same thing running twice simultaneously.
TIA
Don


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top