Solved

Edit Box Highlighting

Posted on 2000-03-25
1
161 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

803 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