ZengCode.Com (The Thai Php Framework)  


Home   Download   Manual   About us    

Facebook   


MAIN MENU
News
Php Tips
Android Programming
Design Pattern By PHP
C# using Linq น่าใช้จริงๆ
C# Tips & Technique
C# Design Pattern
Linux Quick Tips
Java & JavaScript Tips
Database & SQL
ZengCode Framework Guide
Zeng Code Code
Programming
IPhone (Tips and Trick)

Download เอกสารที่น่าสนใจ

     Run only 1 instance of program.  (2010-02-19)

พอดีน้องที่ทำงานถามว่าทำยังไง ผมใช้วิธีนี้ครับ ใครใช้วิธีอื่นที่ดีกว่านี้ก็โพสบอกกันบ้างนะครับ

 bool mutexCreated = false;
System.Threading.Mutex mutex = new System.Threading.Mutex(true, "ZengcodeProgram", out mutexCreated);

            if (!mutexCreated)
            {
                MessageBox.Show("Another instance is already running.");
                System.Diagnostics.Process.GetCurrentProcess().Kill();
                Close();
            }


Comment

ZengCode  (21 กุมภาพันธ์ 2553)   
IP : 124.120.252.153

http://www.smart-mobile.com/forum/viewtopic.php?f=88&t=183485

Palringo สุดยอดโปรแกรม


Name
Comment
Security CodeCAPTCHA Image

easy tracking
avis car rental discount code

This page took 0.356780 seconds to load.