XTab's Blog

Ged Mead's Blog at vbCity

This blog hosted by:
http://blogs.vbcity.com      
  Home :: Syndication  :: Login

SepOctober 2006Nov
SMTWTFS
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

Archives

Topics

Ramblings

VB.NET

Saturday, October 14, 2006 #

a.k.a. Staying Single

  In previous versions of VB.NET when trying to stop users from  having more than one instance of an application running I seem to remember having to create some fairly obscure code using Mutex.     VB 2005 has a feature that saves you any of this effort.

Simply go to  My Project in Solution Explorer
Double click or Right click on the My Project line
Select the Application Tab
In the Windows Application Framework Properties panel, click on the "Make Single Instance Application"
That's it.

  And you used to think that using App.PrevInstance in Classic VB was a breeze!

 

posted @ 9:11 AM