Solved

set the focus to CEdit box when initialize a dialog

Posted on 2002-05-28
1
239 Views
Last Modified: 2013-11-20
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.
 
0
Comment
Question by:b_yousif
1 Comment
 
LVL 4

Accepted Solution

by:
mblat earned 50 total points
ID: 7039869
if you are setting focus to control you need to return FALSE from OnInitDialog.  Do u do that?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
countEvens challenge 2 111
sum28 challenge 31 115
how to use laptop or pad camera in vb.net windows application 2 85
Authenticate using sesu from script 7 54
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question