private void btnBack_Click(object sender, EventArgs e)
        {
            Hide();
            var adminoptions = new FrmAdminOptions();

            if (adminoptions.ShowDialog() == DialogResult.Cancel)
            {
                Application.Exit();
            }
        }
 private void btnNext_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedValue.ToString() == "0")
     {
         MessageBox.Show("Please Select the Course");
     }
     else
     {
         Global.Courseid = comboBox1.SelectedValue.ToString();
         var adminOptionsForm = new FrmAdminOptions();
         Hide();
         if (adminOptionsForm.ShowDialog() == DialogResult.Cancel)
         {
             Application.Exit();
         }
     }
 }