[quoted text, click to view] On Feb 12, 10:37=A0am, rowe_newsgroups <rowe_em...@yahoo.com> wrote:
> On Feb 12, 10:28 am, "John" <J...@nospam.infovis.co.uk> wrote:
>
> > Hi
>
> > Is there a way to ensure that an app is only run once and if it is run t=
wice
> > it terminates?
>
> > Thanks
>
> > Regards
>
> Look at your project properties, I do believe there is a check box
> there.
>
> Also, did you even search for this before posting?
>
> Thanks,
>
> Seth Rowe [MVP]
That is only applicable if you have the "Enable Visual Styles"
checkbox on. I don't know about you, but I prefer to configure VB.NET
apps the same way C#.NET does by default, and have the startup object
as SubMain, enable visual styles there manually and open the main form
with an Application.Run call.
So in that situation I guess you would have to resort to using a mutex