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

Thread: Rich text box (selection protected)

  1. #1
    Join Date
    May 2010

    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 ,

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: Rich text box (selection protected)

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

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center