Results 1 to 2 of 2

Thread: rich text box problems

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    181

    rich text box problems

    Hey. On my forum I haev a rich text box and I have the readonly property set to true. Whenever the box appears, it automatically has all the text highlighted! How can I make it so this doesnt happen?

    Thanks
    John

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: rich text box problems

    What if right before it appears you do this:
    VB Code:
    1. RichTextBox1.Select(0,0) ' makes the selection start at 0 i.e. first charactor and length is 0.
    2. 'Nothing Should be selected
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

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