Click to See Complete Forum and Search --> : Inhibit new program instance opening
Ramel
Nov 26th, 1999, 04:06 AM
How can I inhibit the openning of a new program instance whenever I double-click on my program exec Icon and one instance of the same program is already running (even if it is minimized in that moment)?
I'd like, instead, to pass the control to the already opened instance...
Could anybody help me ?
Thanks in advance
Antonio Begue
Nov 26th, 1999, 05:47 AM
If App.PrevInstance = True Then
with this you can know if a vb instance of a program is already running
Ramel
Nov 29th, 1999, 03:57 PM
It works and inhibits the activation of a new instance of the same executable code.
But, as a second step, how can I pass the control to the executable program that is already active and is minimized or lays hidden somewhere in my win95 screen ?
Thanks in advance...
chrisjk
Nov 29th, 1999, 04:46 PM
Check out http://www.vb-world.net/tips/tip125.html
It's exactly what you're after.
Regards,
------------------
- Chris
chris.kilhams@btinternet.com
If it ain't broke - don't fix it :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.