Solved

Edit Box Highlighting

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

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

Title # Comments Views Activity
sumDigits challenge 9 125
twoTwo  challenge 35 93
pre4 challenge 19 94
mapAB Challlenge 35 128
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

19 Experts available now in Live!

Get 1:1 Help Now