• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Edit Box Highlighting

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
TrainMan
Asked:
TrainMan
1 Solution
 
SteveGTRCommented:
Call SetSel(0, -1) after you set focus. This will select all the text in an edit control.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now