Solved

edit box highlighting

Posted on 2000-03-12
2
216 Views
Last Modified: 2013-11-20
This should be a simple question.  I have a form with edit boxes.  When Ok is clicked.  I check the validity of the data in the boxes and if there is a problem, I set the focus to the problem box.  How do I have the box act like it has been double clicked?  (highlighted and ready to have the data replaced when typing begins)
0
Comment
Question by:gregga
2 Comments
 
LVL 30

Accepted Solution

by:
SteveGTR earned 50 total points
ID: 2609803
((CEdit*) GetDlgItem(IDC_EDIT))->SetSel(0, -1);

Good Luck,
Steve
0
 

Author Comment

by:gregga
ID: 2616122
Thank you.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
Decoding 32 bit binary streams 6 49
Add content to output file 4 67
Prevent this page from creating additional dialogs. 3 627
no14 challenge 14 72
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

820 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