Rich text box (selection protected)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Rich text box (selection protected)

  1. #1
    Join Date
    May 2010
    Posts
    1

    Question Rich text box (selection protected)

    Hi All,

    I want to protect specific text in rich text box , I tried with

    RichTextBox1.Select(1, 100)
    RichTextBox1.SelectionProtected = True

    above code is working fine

    but when i retreive data from database in .rtf format & I try to protect some text then its not working in first time it works second time , plz assist me.



    Regards ,
    Mannu

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,874

    Re: Rich text box (selection protected)

    Show more code than that, and use code tags
    Code:
    ' Like This
    by highlighting code and clicking the # chevron
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center