Solved

How can I position the cursor within an MaskEdit

Posted on 1998-07-15
4
483 Views
Last Modified: 2006-11-17
I want create an OnEnter event for a MAskEdit in which I position the cursor to the very beginning of the field. Is that possible ?
0
Comment
Question by:moonrise
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:mayhew
Comment Utility
Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
0
 
LVL 5

Accepted Solution

by:
mayhew earned 20 total points
Comment Utility
Sorry, I meant to post this as an answer.  I'll do it again.

Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
0
 

Author Comment

by:moonrise
Comment Utility
Hi mayhew, thank you for your answer, it does just what I needed. You entered the answer as a comment and I don't think I can give you the points.
0
 

Author Comment

by:moonrise
Comment Utility
Forget last comment.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

16 Experts available now in Live!

Get 1:1 Help Now