set the focus to CEdit box when initialize a dialog

i have a dialog where the user should enter data, i need to set the foucus to this edit box, i tried to use m_edit.SetFocus() function while initialization in OnInitDialog()function but have no luck ,,, what else or what is the right way to do it.
 
b_yousifAsked:
Who is Participating?
 
mblatCommented:
if you are setting focus to control you need to return FALSE from OnInitDialog.  Do u do that?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.