Hi,
i have a windows mobile application written in c#, i want to add a code to this application so when it is installed on my mobile and before it starts it needs to check if there is already an instance of this application running , if so it terminates it .. plz can u help me to write a code to check all running processes then find my applicaton in windows mobile application ??!!
Loading
Monu DhandaPosted Sep 29, 2016, 1:05 AM
NoraPosted Jan 27, 2010, 2:40 AM
Mutex m = new Mutex(true, MutexName, out WasCreated);
do u have any idea why i'm i getting this error.
Thank you,
Sam HobbsPosted Jan 26, 2010, 12:43 PM
Also, after the "Application.Run(new Form1());" you need to also do the following :
That line is not important for small programs, but always use it anyway when using the above code that uses the Mutex.