using System;using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;using System.Windows.Forms;namespace WindowsFormsApplication3 {static class Program {/// /// The main entry point for the application./// [STAThread]static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false);const string appName = "WindowsFormsApplication3";bool createdNew; Mutex mut = new Mutex(true, appName, out createdNew);if (!createdNew) { MessageBox.Show($"WindowsFormsApplication3 is already running!", "Multiple Instances");return; } Application.Run(new Form1()); } } } b
Copyright © 2004-2024 Ynicp.com 版权所有 法律顾问:建纬(昆明)律师事务所 昆明市网翼通科技有限公司 滇ICP备08002592号-4