XTab's Blog

Ged Mead's Blog at vbCity

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

AprMay 2008Jun
SMTWTFS
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Archives

Topics

Ramblings

VB.NET

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 on Saturday, October 14, 2006 9:11 AM