Is there a way to tell if text is highlighted in a text box? Also, can you find out how much of the text is highlighted or what portion?
Thanks,
Ryan
Printable View
Is there a way to tell if text is highlighted in a text box? Also, can you find out how much of the text is highlighted or what portion?
Thanks,
Ryan
look at the .SelLength property of the textbox, if it is more zero, that means some text is highlighted.
.SelLength tells you how many char are highlighted. the starting position is by .SelStart
HTH
cksiow
http://vblib.virtualave.net - share our codes