Hi!
There is my code:
Shared Function PrevInstance() As Boolean
If
Ubound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrent
Process.ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
this dosn´t work in Windows 98 or Windows ME. How can I do to see if an
application is already running?

Signature
Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: passos@rcsoft.pt
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401
Jon Skeet [C# MVP] - 21 May 2005 17:43 GMT
> There is my code:
>
[quoted text clipped - 10 lines]
> this dosn´t work in Windows 98 or Windows ME. How can I do to see if an
> application is already running?
Use a named mutex. See
http://www.pobox.com/~skeet/csharp/faq/#one.application.instance

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too