View Full Version : Solved: Select text in Form textbox
mdmackillop
09-07-2006, 12:04 PM
I can go to a Form textbox using Textbox1.SetFocus. This does not select the text, although EnterFieldBehavior = 0. Any thought on how to do this?
mvidas
09-07-2006, 12:20 PM
Hi Malcolm,
The EnterFieldBehavior doesnt seem to pertain to when the focus is set programmatically.. what I've done in the past is With TextBox1
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End WithMatt
mdmackillop
09-07-2006, 12:31 PM
Thanks Matt,
That'll do nicely!
Regards
Malcolm
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.