how to load a rtf into a richtextbox at runtime (the rtf file provided in app)?

H

Henry J.

Hi,

I need to make a simple form to show different help files at different
location in the
application. The help files are RTF files provided in the application
as resources.

I wonder if the above will work. And how should I load a RTF file,
which is a resource
bundled in the application, into a richtextbox? Apparently, the RTF
filename should
be provided as a parameter to the form before the form is popped up.

It seems to me I have to either supply an absolute file path, or a
string, to a richtextbox.
Please advise how I can achieve what I described. Any help is highly
appreciated.

Thanks!

Henry J.
 
V

V

hi henry, i feel that a good way to do this is to actually read the rtf
file contents into a string and simply assign the string to the rtf
property of the RichTextBox at runtime as needed.

- Vaibhav
http://www.nagarro.com
 

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