Click to See Complete Forum and Search --> : Text Box Selected Text


champlir
May 20th, 2001, 07:13 PM
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

cksiow
May 20th, 2001, 07:30 PM
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