static void Main() { System.Threading.Mutex run = new System.Threading.Mutex(true, "single_test", out bool runone); if (runone) { run.ReleaseMutex(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); HomeForm form = new HomeForm(); int hdc = form.Handle.ToInt32(); Application.Run(form); IntPtr a = new IntPtr(hdc); } else { MessageBox.Show("压缩器已在运行"); } }
public RegexInput(HomeForm form) { home = form; InitializeComponent(); }
public HelpForm(HomeForm form) { home = form; InitializeComponent(); }