Solved

edit box highlighting

Posted on 2000-03-12
2
197 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now