login form in C#I am creating a windows login form in visual C# with two textboxes one for accepting the username and other for accepting the password and one button control. I am setting the username as "Rajan" and password as "Admin".
I need to implement the following conditions in my login form.
i)While typing the username, i want the first character alone to get changed into CAPS automatically.
ii)If either the username or the password is wrong then i should get a message box "Invalid login". Else i should get the message "Login Successful".
iii)The application has 2 forms - Form2 and Form3. If the user enters with the "Admin" password then the Form2 should be displayed. Else if the user enters with the password "Guest" then the Form 3 should be displayed. How to do the validation in code.
Can anybody provide the full code?