hi,
i have created a login form for my project and coded it, but when the username and the passsword is correct i have added the below code
Qustion 1
if (u.accessGranted(txtUsername.Text, txtPassword.Text))
{
ClearTextBoxes();
new frmMainMenu().Show(); // main form after the login
this.Close();//login form
}
but when the login in successful the application closes without opening the other form,
why is this happening???
Question 2
and also when a login is uncusseful i do i direct the cursor to do the the username textbox???
appriciate if someone can give me an answer,
thanxxx