How to wrap Text in RichTextBox on resizing the form?

N

nitin8or

Hi,

I have a RichTextBox where I display the Rich Text, my problem is that
on resizing the form the text in RichTextBox does not wrap, I have set
wordwrap property of RichTextbox to true but still on resizing the
form the text in Richtextbox is not wrapping. Any suggestions/ code
would be helpful.

Thanks
Nitin
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (nitin8or) scripsit:
I have a RichTextBox where I display the Rich Text, my problem is that
on resizing the form the text in RichTextBox does not wrap, I have set
wordwrap property of RichTextbox to true but still on resizing the
form the text in Richtextbox is not wrapping. Any suggestions/ code
would be helpful.

Mhm... Works perfectly for me.
 
N

nitin8or

Hi Herfried,

do you do anything special, what I do is that I have a windows form on
which I have placed this richtextbox, on resizing the form when I do
it manually by dragging the corner or edge of the form , i see that
text in rtfbox deosnot wrap, i tried using rezie event of form but it
does not help. Any ideas please?

Thanks
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (nitin8or) scripsit:
do you do anything special, what I do is that I have a windows form on
which I have placed this richtextbox, on resizing the form when I do
it manually by dragging the corner or edge of the form , i see that
text in rtfbox deosnot wrap, i tried using rezie event of form but it
does not help. Any ideas please?

I anchored the RichTextBox, but I didn't change anything else. When
resizing, the text in the RichTextBox wraps correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top