private void frm_Main_Load(object sender, EventArgs e) { sC_Tool2.Panel2.Controls.Add(UC_SignOn.Instance); UC_SignOn.Instance.Dock = DockStyle.Fill; frm_SignOff signOff = new frm_SignOff(); signOff.ShowDialog(); frm_SignOn signOn = new frm_SignOn(); signOn.ShowDialog(); //UC_SignOn.Instance.btn_SignOn.Click += Btn_SignOn_Click; }
private void btn_SignOn_Click(object sender, EventArgs e) { frm_SignOn frm_Sign = new frm_SignOn(); frm_Sign.ShowDialog(); }