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?
Printable View
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?
I'm not sure, but check if he RichTextBox got the multiline property.
If yes, set it to True..
Yea I have... My program is completly functional to the way I want it except that part.
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
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. :/
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
hope this helps . . .Quote:
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.