Home All Groups Group Topic Archive Search About

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

Author
25 Jul 2006 6:40 PM
Rich
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

Author
25 Jul 2006 6:52 PM
iwdu15
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!
--
-iwdu15
Author
25 Jul 2006 7:30 PM
Rich
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


Show quoteHide quote
"iwdu15" wrote:

> 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!
> --
> -iwdu15