1

Closed

Tabbing through controls stops on password field

description

I was keyboard tabbing through the controls on the right-hand side of the form (Name, Url, Username, password, etc.). Once the 'password' field receives focus, further tabbing just re-focusses on the password control. Do you have some tricky code in the LostFocus handler of this textbox?
 
I am running Windows Vista, if it makes a difference. : )
Closed Apr 20, 2008 at 9:37 AM by alucard
Fixed

comments

DrFerris wrote Jan 4, 2008 at 5:34 AM

I just had a look at your code, and the problem seems to be caused by the fact that you are altering the UseSystemPasswordChar property on the textbox within its own Leave/Enter handlers. A quick look at the call stack seems to indicate that this causes the underlying primitive control to be re-created.

Maybe you could swap between two separate textboxes (one that is visible while the user is entering the password, and one that is visible otherwise), instead of fiddling with the properties on one textbox?

alucard wrote Mar 17, 2008 at 1:17 AM

sory for the late reply. actually, i am not actively maintaining this project. i was curious to see how this project is going on, and so i thought i would pop in and have a look, and to my surprise, actually to find out that there are people issuing trackers :) ....

well.. thanks for your report.
i didn't realise that the textbox will be re-created as i change the usesystempasswordchar prop. back in the early development phase i would just notice some sort of flicker (perhaps some re-drawing stuff) and i didn't pay much attention to it. Also, i'm not a keyboard-shortcut oriented person, so i didn't thought of tabbing through the controls ...
i will fix that soon.

wrote Mar 18, 2008 at 1:06 AM

wrote Apr 20, 2008 at 9:36 AM

alucard wrote Apr 20, 2008 at 9:37 AM

This issue is fixed by setting the UseSystemPasswordChar to false after a 50 millisecs timeout, which by then the cursor would have left the password text box.

wrote Apr 20, 2008 at 9:37 AM

wrote Jun 22, 2009 at 3:46 PM

wrote Feb 12, 2013 at 8:40 PM

wrote May 13, 2013 at 6:34 PM