Exemple #1
0
 private void btnLeave_Click(object sender, EventArgs e)
 {
     try
     {
         frmLeaveConfig flc = new frmLeaveConfig();
         flc.TopLevel        = false;
         flc.FormBorderStyle = FormBorderStyle.None;
         pnlHome.Controls.Clear();
         pnlHome.Controls.Add(flc);
         flc.Visible = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void btnLeaveConfig_Click(object sender, EventArgs e)
        {
            frmLeaveConfig flc = new frmLeaveConfig();

            flc.Show();
        }