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
.
|