PC Review


Reply
Thread Tools Rate Thread

PrevInstance

 
 
David de Passos
Guest
Posts: n/a
 
      21st May 2005

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?

--


Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: (E-Mail Removed)
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401



 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      21st May 2005
David de Passos <(E-Mail Removed)> wrote:
> 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?


Use a named mutex. See
http://www.pobox.com/~skeet/csharp/f...ation.instance

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: App.PrevInstance of VB6 Jaime Lucci Microsoft VB .NET 0 28th Oct 2005 04:10 PM
App.PrevInstance of VB6 Jaime Lucci Microsoft VB .NET 7 28th Oct 2005 12:06 AM
PrevInstance David de Passos Microsoft VB .NET 3 21st May 2005 08:23 PM
Previnstance function Tom Edelbrok Microsoft VB .NET 3 12th Apr 2005 07:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:20 AM.