473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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


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.

May 4 '06 #1
2 2073
well, I just found a thread that solved my problem:

http://www.thescripts.com/forum/thread249965.html

May 4 '06 #2
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

May 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Broderick | last post by:
I've got a problem with the RichTextBox control in .Net where the garbage collector doesn't reclaim its memory after I've finished with it. My program adds a series of rtb's to the control array...
5
by: user | last post by:
Hello When i add new lines of text to my RichTextBox, and when vertical scroll bar appear (there is more text than RichTextBox can display), RichTextBox always display "the oldest text" (vertical...
2
by: M O J O | last post by:
Hi, How do I add and remove PART of the RTF-text in a RichTextBox? If I use... MyRichTextBox.Text = "New text" & MyRichTextBox.Text .... then all my RTF (higlight, bold, underline and so...
13
by: Thom Little | last post by:
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0 The application compiles and executes correctly on the development machine. I then publish it to an empty directory on...
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
3
by: AxOn | last post by:
Hi, I have an application with a Save function. I want to be able to have several tabs(each containing a RichTextBox, created at runtime) open in a tabControl and save the text from each...
2
by: Twinkle | last post by:
HI Guys How to open a word file and HTML file (Without tags) into richtextbox control.file is opening by this code but it is opening in plaintext format but i want to open in word format ...
1
by: Mayilsamy | last post by:
hai, hai i need some information about how to load the pdf file in richtextbox using vb.net.
5
by: =?Utf-8?B?bWFzaXg=?= | last post by:
We have an issue with load time in several installations of our application. We've located the information regarding KB 936707 and ensured that the application config file contains the runtime...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.