You are on page 1of 1

{

string a = txtUserName.Text;
string b = txtPassword.Text;
if (a == "admin")
{
if (b == "admin")
{
MessageBox.Show("Main Page");

}
else
MessageBox.Show("Enter Correct Credentials");

txtUserName.Clear();
txtPassword.Clear();
}

You might also like