Hi Mojo,
Thanks for posting in the community. My name is Peter, and I will be
assisting you on this issue.
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that when you use a RichTextBox with
WordWrap=True and MultiLine=False, if the text is to long, it fills more
lines. Also you wants to know how to get the number of lines the text uses.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
Based on my test, I can not reproduce the behavior I have enter 1780490
characters into the richtextbox, but there is only one line in the
richtextbox.( WordWrap=True and MultiLine=False)
So can you tell me what do you mean by the "long" in your post?
Also according to the MSDN doc, if you wants to display multiline in the
richtextbox, you may need to set the MultiLine=True, Why you wants to set
the multiline=False and display it as multiline and get its line count? Do
you have any specific need to do so, if so please post here, maybe there is
another solution.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.