Link to home
Start Free TrialLog in
Avatar of VirtueTech
VirtueTech

asked on

How to SetFocus on a CEdit box so that the user can just start typing when the dialog loads?

Hello everyone,

I have a dialog that opens when a user opens my application asking them for their username/password. I want to have the focus set on the USERNAME CEdit box when the dialog loads so that the user doesn't have to click on the USERNAME box to type in their text.

The focus should be set on load so they can just type in their name.

How can I do this? Any comments or pointing in the right direction is appreciated.
Avatar of jkr
jkr
Flag of Germany image

The easiest way - set that CEdit as the initially focused (default) control for that dialog using the resource editor.
Avatar of VirtueTech
VirtueTech

ASKER

I don't see a way to set it as the initially focused control.

Is this in the CEdit box's properties?

Sorry for the newb question
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wow...that was cool..and pretty easy. Thanks.