Link to home
Start Free TrialLog in
Avatar of Bob
Bob

asked on

Retreiving Content from a RichTextBox

A  RichTextBox is used to right justify numerals. This is the only reason to use it.

The content to save cannot be directly accessed. Looking on the web examples are found that are complex and difficult to understand. Not realizing that there is some "hoop-jumping" required to get its content, the control was selected. Does anyone know how to do this simply and if not is there any advice that will make retrieving content easier to understand?

Thank you for any advice you may offer.

Bob - NYC Department of Parks & Recreation
Avatar of it_saige
it_saige
Flag of United States of America image

If you need the unformatted text, you can simply use the Text property.  Otherwise, you would use the Rtf property to get the formatted text.  

The formatted text follows the rules established for the RTF (Rich Text Format) file type and has very specific, and simple, syntax rules - https://docs.microsoft.com/en-us/previous-versions/office/developer/office2000/aa140284(v=office.10)

-saige-
Is it third-party RichTextBox?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.