Solved

Edit Box Highlighting

Posted on 2000-03-25
1
159 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
Comment Utility
Call SetSel(0, -1) after you set focus. This will select all the text in an edit control.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

9 Experts available now in Live!

Get 1:1 Help Now