static class Program
{
private static Mutex onlyOne;
[STAThread]
static void Main()
{
onlyOne = new Mutex(true, Process.GetCurrentProcess().ProcessName);
if (onlyOne.WaitOne(0, false))
{
Application.Run(new mainForm());
}
else
{
MessageBox.Show("应用程序已启动!"); ...
相关文章:
-
2022-12-23
-
2022-12-23
-
2022-02-09
-
2022-12-23
-
2021-06-24
-
2021-07-21
-
2021-09-19