CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Posts
    38

    Text Box Selected Text

    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


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Text Box Selected Text

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured