Solved

Edit Box Highlighting

Posted on 2000-03-25
1
163 Views
Last Modified: 2013-11-20
When a user moves form one edit box to another with the TAB key, the text within the edit box is highlighted.  However, if I control the order programmaticly the text isn't highlighted.  How can I do this?

I'm working with Win98 and Dev Studio version 6.

Thanks in advance.
0
Comment
Question by:TrainMan
1 Comment
 
LVL 30

Accepted Solution

by:
SteveGTR earned 50 total points
ID: 2657422
Call SetSel(0, -1) after you set focus. This will select all the text in an edit control.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 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