public LoginStudent(StartLogin Frm)
 {
     InitializeComponent();
     Fom = Frm; //The login form is saved to the global variable
 }
 public TeacherLoginForm(StartLogin Frm)
 {
     InitializeComponent();
     Fom = Frm;  //The login form is saved to the global variable
 }