Query:
I am trying to ouput a Word document into a Rich Text Box control. I have the Scrollbars property set to rtfBoth. The horizontal scroll bar does not appear and the text wraps.
There is an article on Microsoft Knowledge Base Q175501 which suggests the following:
http://support.microsoft.com/kb/175501
Dim x As String
x = RichTextBox1.TextRTF
RichTextBox1.TextRTF = x
But this does not appear to work. How can I get the horizontal scroll bars to appear - or is there a better control for my purposes?
Solution:
RichTextBox1.WordWrap = False
RichTextBox1.ScrollBars = RichTextBoxScrollBars.ForcedBoth
Or
try change the value for rightmargin to say 10000.
Happy Coding.. :)
Wednesday, March 16, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment