View Full Version : As App.PrevInstance
Mikecrosoft
07-19-2004, 05:45 PM
Hi,
I need to know how to know when a previous instance of my app its open don't open it again, like VB6 App.PrevInstance ???
Thanks
Mike :D
PWNettle
07-19-2004, 07:17 PM
Basically it involves using simple manipulations of the System.Diagnostics namespace.
Check out this thread (http://www.xtremedotnettalk.com/showthread.php?t=72989&highlight=PrevInstance) or this thread (http://www.xtremedotnettalk.com/showthread.php?t=49628&highlight=PrevInstance) from the .Net sister forums.
The only thing I don't like in most of what is posted there is the use of 'UBound' - I prefer to see things done more "the .Net way" than by using legacy VB integration. But whatever works. :-/
Paul
OnErr0r
07-19-2004, 08:13 PM
Yes, divil and volteface should have used .length (as some of the other posters did). I'll have to razz them about it. :p
reboot
07-19-2004, 08:25 PM
And what's wrong with MY submission in the .Net Code Library of this forum?? (You'll notice there's no UBound)
http://www.visualbasicforum.com/showthread.php?t=129256
:)
PWNettle
07-19-2004, 10:08 PM
And what's wrong with MY submission in the .Net Code Library of this forum?? (You'll notice there's no UBound)
http://www.xtremevbtalk.com/showthread.php?t=129256
:)
Bleh...I didn't find yours searching for 'previnstance' (for relating it to VB6) ... and did find it that way over yonder.
Paul
Powered by: vBulletin v3.8.4