how to hardcode lots of text into a textbox/RichTextbox?

G

Guest

Hello,

I am adding a makeshift Help component to my VB2005 project. That means I
am not using HTML help to create a chm (unless someone can explain how you
connect a chm file to a project - I have HTML workshop - and sort of know how
to use it).

Anyway, I am currently using a tab control and placing
textboxes/RichTextboxes in the various pages with my information. The
problem I am having is that I want to hardcode the text, so I am entering it
in the Textbox Property Sheet Text window. The only other option I know of
using this method is to write the text in the IDE and load it at run time -
also kind of painful.

I am thinking that the last thing I could do is to write my information in a
Word Doc and then load that into a RichTextbox. Does this sound doable? The
only hassel is that I would have to ship the WordDoc with the app.

Any suggestions appreciated on the best way to create my makeship helpfiles.

BTW, how do I read a Word Doc into a RichTextbox?

Thanks,
Rich
 
G

Guest

its very simple to use a .chm file with VB. heres a little sample

Private Sub mnuHelp_Click(...)

Dim proc As New Process
Dim procSI As New ProcessStartInfo("C:\MyChmHere.chm")

proc.StartInfo = procsi
proc.Start()

end Sub



hope that helps!
 
G

Guest

Thank you for your help. Very useful. Now I will have to reread my HTML
Help workshop book (by the lady from HP) so I can create some chm's.

And as a result of my posting this message, I experimented with the
richtextbox which reads a word.rtf file no problem.


Now I have some options. Many thanks for your help.

Rich
 

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