Hi All,
I am Using VS03 + C# + Windows
In my application i want when user type password and after completion hits Enter Button then submit button
get focus.
Below what i have tried
private
void txtPassword_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(txtPassword.Text.Length != 0)
{
btnUser.Focus();
}
}
But here problem is that button get focus every time after key release.
Anyone give me suggestion.
The code in c# is apriciated.
Thanks in advance.