I have a Login form which has 2 text boxes to accept user name and password and 2 command buttons Ok and Cancel. I made the OK button as default by setting its property. I am passing the user name and password to a COM DLL to verification.

The problem now is if I enter correct user name and password and click on OK button it is working fine. If I enter correct user name and password, and if I press Enter Key in password field I am getting an "Invalid Password" Error which I raised in C++.

I displayed length of the password also before sending for verification. It is displaying correctly. I think the enter key is becoming part of the password.

How to solve this problem.


early reply is appreciated
Chakradhar


Software Engineer
IT Solutions India
Banagalore