private void FrmAbout_FormClosed(object sender, FormClosedEventArgs e) { pUniqueForm = null;//窗体唯一打开代码 }
public FrmAbout() { pUniqueForm = this;//窗体唯一打开代码 InitializeComponent(); }
private void 关于ToolStripMenuItem_Click(object sender, EventArgs e) { FrmAbout.ShowUniqueForm(true); }
private static FrmAbout pUniqueForm = null; //窗体唯一打开代码 #endregion Fields #region Constructors public FrmAbout() { pUniqueForm = this;//窗体唯一打开代码 InitializeComponent(); }