I'm using a Mutex to check if my application is already running. So far I have presented a messagebox if the app is running:
oRunning = New Threading.Mutex(True, GUID)
If oRunning.WaitOne(0, True) Then
But now I want it to receive focus. I have tried AppActivate, but it doesn't open the form if it is minimized. Shell() takes the AppWinStyle-parameter but can only be used to open a new instance. I have searched the Diagnostics-package but can't find anything.
Any more ideas?
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
By krishna in forum VB Classic
Last Post: 11-26-2002, 12:09 AM
By krishna in forum Careers
Last Post: 11-26-2002, 12:05 AM
By Krishna in forum vb.announcements
Last Post: 11-26-2002, 12:03 AM
By vu in forum VB Classic
Last Post: 11-22-2001, 05:32 PM
By Kris Grindstaff in forum authorevents.appleman
Last Post: 04-10-2000, 04:17 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL