473,770 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2095
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
3510
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 of a panel to make a basic text editor. When the form that the panel is on is closed these rtb's are still in memory. If you want to see the probelm try this: create a form which has a panel on it. Create a class,
5
13049
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 scrollbar is always rolled to the top). And i want to see "fresh text" (vertical scrollbar should be rolled to bottom position). How can i do that ?
2
8128
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 on) is removed.
13
26619
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 the development machine. I then copy that directory to the remote server that contains numerous directories and some of them are using .NET Framework 1.1 (1.1 and 2.0 are both installed on the server). When I call the page I get the message ...
6
44489
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 = @"C:\PMDRepository\Tools\ManfBusProcMgr\Modules\TestModule\bin\Debug\TestModule"; Assembly a = Assembly.Load(modulePath); </code>
3
2188
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 RichTextBox one at a time. The plain text is loaded into the RichTextBoxes via an openFile funktion that creates a new RichTextBox. When the file is opened the name of the new RichTextBox and the name of the file is stored in a Hashtable like so:
2
17188
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 IDataObject Data1; object nullobj,file; WordApp=new Word.ApplicationClass(); nullobj=Missing.Value; file =strFileName1;
1
3232
by: Mayilsamy | last post by:
hai, hai i need some information about how to load the pdf file in richtextbox using vb.net.
5
9891
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 setting of <generatePublisherEvidence enabled="false"/> but the application still takes over 2 minutes to load. When we disconnect the PC from the network (internet) then the application loads in about 5 seconds. We've ensured the .net 2.0...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10099
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.