XTab's Blog

Ged Mead's Blog at vbCity

vbCity Blogs moved to:
http://cs.vbcity.com/blogs
  Home :: Syndication  :: Login

OctNovember 2009Dec
SMTWTFS
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

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