>I'm gonna get it for this one!
>
>I have a class for my login screen, subclassed to change passwords and add new users. In my lostfocus() event I check for a pre-existing user name and a message box prompts the user to select a different name. After the MB code I have tried this.setfocus() and thisform.txtUserName.setfocus(), but neither of these are returning focus to the textbox! What an idiot, eh? (Maybe I should just put the code in the passwords gotfocus() event!)
>
>Armor plating installed!
>
>Jon
This sounds like a need for Nodefault to override the tab index. Put it in the Lostfocus before the Setfocus.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.