if ((this.textBoxUsername.Text == "Admin") && (this.textBoxPassword.Text == "mbuyu"))
{
Form1 sortform = new Form1();
sortform.Show();
this.Hide();
}
else
MessageBox.Show("You are not authorised to access this page", "Info");
}
How do i make the new form come before the initial form.
Thanks in advance!
Kirtan PatelPosted Jan 14, 2011, 11:25 PM
have a look at Program.cs ..and see which form is Start up form in Application
Kevin AungPosted Jan 14, 2011, 7:42 PM
You want a log on form (where the code resides in) to authenticate user. On authentication ok, you want to show the other form?