Winform 限制单实例运行
发布时间
阅读量:
阅读量
通过在Program.cs文件中实施相应约束措施。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
namespace Winform.IdCardHelper
{
static class Program
{
private static Mutex _singleton;
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(f
全部评论 (0)
还没有任何评论哟~
