标签:asmx length ring win inf ble [] message 运行
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName(Application.CompanyName);
if (processes.Length > 1)
{
MessageBox.Show("应用程序已经在运行中!");
Thread.Sleep(1000);
System.Environment.Exit(1);
}
else
{
Application.Run(new Form1());
}
标签:asmx length ring win inf ble [] message 运行
原文地址:http://www.cnblogs.com/zhaowei120101/p/6401197.html