private void btn_mailTo_Click(object sender, EventArgs e) { this.panel.Controls.Clear(); MailTo p = new MailTo(); p.TopLevel = false; p.Dock = DockStyle.Fill; this.panel.Controls.Add(p); p.Show(); }
private void btn_toMsg_Click(object sender, EventArgs e) { LeftMenu(sender); this.pan_change.Controls.Clear(); MailTo p = new MailTo(); p.TopLevel = false; p.Dock = DockStyle.Fill; this.pan_change.Controls.Add(p); p.Show(); }