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
猜你喜欢
  • 2021-12-24
  • 2021-12-05
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案