最傻瓜式的把这段替换MAIN方法就好了
static void Main()
{
if(System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length>1)
{
}
else
{
Application.Run(new MainForm());
}
}
转载于:https://www.cnblogs.com/luhuan860/archive/2009/02/16/1391387.html