Results 1 to 6 of 6

Thread: Rich Text Box horizontal scroll bar.

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Rich Text Box horizontal scroll bar.

    Heya, I have a richtextbox control that has the scrollbar property set to both but when I load a file it gets rid of the horizontal scroll bar. I dont want the text to warp around... anyone have a clue what's going on?

  2. #2
    Stiletto
    Guest
    I'm not sure, but check if he RichTextBox got the multiline property.
    If yes, set it to True..

  3. #3

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    Yea I have... My program is completly functional to the way I want it except that part.

  4. #4
    Stiletto
    Guest
    Or mayb try to set the MultiLine property to false and check if you got the hor scrollbar.
    If not then try to set the ScrollBar property to Hor only and see what happens

  5. #5

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    Well, taking off multiline does show the horizontal bar... but everything is on one line... even with horizonly on it doesn't give me the h bar. :/

  6. #6
    Armbruster
    Guest
    You need to increase the Rich Text Box's right margin to a larger number. I have mine set to 35000 in my report viewer program to prevent wrapping.

    From MSDN
    The RightMargin property is used to set the right most limit for text wrapping, centering, and indentation. Centering a paragraph is based on the left most part of the text portion(doesn't include borders) of the RichTextBox control and the RightMargin property. Also, when setting the SelRightIndent property, it will be based on the current setting of the RightMargin property.

    The default for the RightMargin property is 0 and will cause the control to set text wrapping equal to the right most part of the RichTextBox control so all text is viewable.
    hope this helps . . .

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