private void checkCredentials_Click(object sender, EventArgs e) { CreateAccountController ctr = new CreateAccountController(); ctr.create(); System.Windows.Forms.MessageBox.Show(appNum.Text); this.Hide(); ctr.checkCredentials(appNum.Text); this.Close(); }