G
Guest
Dear all,
I have a vb.net application which start with a sub main procedure.
inside this sub main procedure I create a and instance from an assembly x like as follow:
sub main()
.....
Application.Run(New frmLogin)
end sub
frmLogin is a class inside assembly X
What I need to do, is to avoid launching 2 instances of my program. At the end my main startup programm which contains just the sub main is called NNS.exe wich instantiate a form object from X.dll
I have try many suggesting I get , like the findwindow, defining a mutex object, or simply checking the instance value but nothing goes.
Does anyone as a solution to avoid lunching multiple instance ??
regards
serge
I have a vb.net application which start with a sub main procedure.
inside this sub main procedure I create a and instance from an assembly x like as follow:
sub main()
.....
Application.Run(New frmLogin)
end sub
frmLogin is a class inside assembly X
What I need to do, is to avoid launching 2 instances of my program. At the end my main startup programm which contains just the sub main is called NNS.exe wich instantiate a form object from X.dll
I have try many suggesting I get , like the findwindow, defining a mutex object, or simply checking the instance value but nothing goes.
Does anyone as a solution to avoid lunching multiple instance ??
regards
serge