VBCE.com - The Premier Website For Visual Basic/CE Developers

 

*Dev Corner

Sample Code
Controls
Workarounds
Tips & Tricks
Q & A
Forums

*Goodies
Downloads
Software
Bookstore


*General
Home
What's New
General Info
Misc. Info


*News Worthy
News
Articles
Editorials
KB Articles
Reviews
Awards

*Miscellaneous
Web Links
Partners
Search
Feedback
Advertising

Sponsors


More...



Simulating App.PrevInstance in VBCE 6.0
(Method 1)

App.PrevInstance is an extremely useful statement which allows a running application to determine if another instance of the app is currently executing.  Unfortunately, App.PrevInstance is not supported in VBCE 6.0.  You can simulate it though with a few API calls.  

Special thanks to Jack Dankers for providing the source code.  

Declarations:

Code:

Be sure to check out Method 2

 

VBCE.com is DevX Winner!

Unless otherwise noted, all information on VBCE.com is Copyright 1998 - 2002
Windows, Windows CE, and Visual Basic are trademarks of the Microsoft Corporation.
VBCE.com is not responsible for content on external sites.
Send all feedback to webmaster@vbce.com
Webmasters - feel free to link to
VBCE.com - Premier Website for Visual Basic/CE Development

Buy Books!