Click to See Complete Forum and Search --> : masked edit text box


dlw68
July 6th, 2000, 03:45 PM
when the masked edit box receives the focus I'd like the text in the box to all be selected for easy replacement...due to a date picker dialog I cannot use a simple solution which was to blank the edit box when it receives focus because that simply removes the date selected from the calendar dialog form.

DLW68

Johnny101
July 6th, 2000, 04:36 PM
why couldn't you do something like this:

With MaskEdBox1
.SelStart = 0
.SelLength = len(.Text)
End With




the text will be selected whenever the masked edit box receives the focus.

hope this helps,

John

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org

dlw68
July 7th, 2000, 07:54 AM
errr...were those always there?!? :)

*Looks around sheepishly waiting for other programmers to make fun of him*