![]() |
highlighting the text of a textbox
I have a form with several textboxes. When the <OK
button is clicked to close the form, a function is called to verify that all the textboxes contain appropriate values. If not, a message is displayed and the first invalid textbox gets the focus. What I am having difficulty with is that I would like the text in that textbox to be highlighted as well. Any ideas would be appreciated...TIA |
highlighting the text of a textbox
FYI...
Text1.SetFocus Text1.SelStart = 0 Text1.SelLength = Len(Text1.Text) -----Original Message----- I have a form with several textboxes. When the <OK button is clicked to close the form, a function is called to verify that all the textboxes contain appropriate values. If not, a message is displayed and the first invalid textbox gets the focus. What I am having difficulty with is that I would like the text in that textbox to be highlighted as well. Any ideas would be appreciated...TIA . |
All times are GMT +1. The time now is 10:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com