| Author: greeny_1984 11 May 2009 | Member Level: Diamond Points : 1 |
Hi,
Nice piece of information
easily understandable
regards,
greeny_1984
|
| Author: Aaditya Sharma 19 Jun 2009 | Member Level: Gold Points : 0 |
good code snippet..very helpful..
|
| Author: Viji RAJKUMAR 19 Jun 2009 | Member Level: Diamond Points : 2 |
Hi,
The simplest way is to use Mutex.
use the System.Threading.Mutex class
Put this code in the entry point of your program
Dim mut As System.Threading.Mutex = New System.Threading.Mutex(False, Application.ProductName)
Dim running As Boolean = Not mut.WaitOne(0, False)
'If already running
If running Then Application.ExitThread() Return End If
|
| Author: Chitra_19 19 Jun 2009 | Member Level: Gold Points : 0 |
Hi,
Good piece of code..
Very helpful..
Regards, Chitra
|
| Author: Deepika Haridas 20 Jun 2009 | Member Level: Diamond Points : 1 |
Hi,
Thanks for your valuable comments..
Please do RATE if its useful.
And Viji thanks for adding second method too.. It good when all solutions are at one place.
Keep contributing!!
Regards, Deepika
|