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.
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.
The easiest way - set that CEdit as the initially focused (default) control for that dialog using the resource editor.
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
Is this in the CEdit box's properties?
Sorry for the newb question
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow...that was cool..and pretty easy. Thanks.