public Form_main() { InitializeComponent(); if (frm == null) { frm = this; } this.control1.Enabled = false; this.heder1.Enabled = false; }
private void btn_exit_Click(object sender, EventArgs e) { Form_main f = new Form_main(); // f.Location = new Point(20, 20); f.Show(); ((Form)this.TopLevelControl).Close(); }
static void frm_FormClosed(object sender, FormClosedEventArgs e) { frm = null; }