Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / November 2004



Tip: Looking for answers? Try searching our database.

Determining if my app is already running.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
only@here.co.za - 26 Nov 2004 14:16 GMT
Hi all,

VB6. SP5.

I have a situation where users want to load two or three versions of
the same app at the same time so that they don't have to search for
certain stuff without leaving the place they are working in.

How can I check to see if there is already an instance of my app
running on the local machine to prevent another instance starting ?

Much obliged for an answer here..

JimInDurban
Jan Hyde - 26 Nov 2004 14:48 GMT
only@here.co.za's wild thoughts were released on Fri, 26 Nov
2004 16:16:06 +0200 bearing the following fruit:

>Hi all,
>
[quoted text clipped - 8 lines]
>
>Much obliged for an answer here..

app.PrevInstance

Jan Hyde (VB MVP)

Signature

"I'm no longer invisible" said Tom Insightfully    

(Jan Hyde)

[Abolish the TV License - http://www.tvlicensing.biz/]

Randy Birch - 27 Nov 2004 00:42 GMT
Isn't you question the exact opposite of what the users are asking
for???????

Signature

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

: Hi all,
:
[quoted text clipped - 10 lines]
:
: JimInDurban
David Pendrey - 29 Nov 2004 08:03 GMT
I don't know if it's in VB6, but the easiest way in VB4 would be to test to
see if
   App.PrevInstance
is true or false. If its true then the app is already running someplace
else.

> Hi all,
>
[quoted text clipped - 10 lines]
>
> JimInDurban
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.