473,657 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
Jul 25 '06 #1
2 1838
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 ProcessStartInf o("C:\MyChmHere .chm")

proc.StartInfo = procsi
proc.Start()

end Sub

hope that helps!
--
-iwdu15
Jul 25 '06 #2
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
"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 ProcessStartInf o("C:\MyChmHere .chm")

proc.StartInfo = procsi
proc.Start()

end Sub

hope that helps!
--
-iwdu15
Jul 25 '06 #3

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

Similar topics

5
56499
by: Cox | last post by:
How would I go about highlighting text in a textbox?
1
2637
by: James Dean | last post by:
Can you make vertical text in a richtextbox or is there any way around this like make the string vertical outside the textbox then try to paste it in that way into the textbox?.... *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!
2
8896
by: Hendrik | last post by:
Hi I have searched extensively for help on inserting text at the position of the mouse pointer in a text box as the final step of drag and drop process What I have come with is listed below - the problem is that the SendMessage function doesn't seem to perform the expected operation of moving the caret to position in the textbox where the mouse is pointing to. (can be text or richtext box either is good - sample code is based of attemp...
5
30991
by: Wilfried Mestdagh | last post by:
Hello, textBox += someData + "\r\n"; does not scroll the visible text to the end. How do I perform that ? Also this way seems to me a lot of reallocating memory. Is there better way to add text to a textbox ? -- rgds, Wilfried
6
8783
by: UJ | last post by:
I've got a multiline textbox that I'm using to display messages. Is there an easy way to have it scroll to the end after I add a line to the text of the box? TIA - Jeff.
0
2383
by: AxOn | last post by:
Hi! I'm having trouble creating a save funktion. How can I save the contens of a new richTextBox that is created from an "external" class file? The open funktion looks like this: public void openFile() { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Title = "Select a Text File";
2
1859
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for a windows application. I have a richtextbox control on my form that I make it readonly. 1. Do I need to make readonly to be false to append text to it? 2. Even though I chose the Cursor property of the richtextbox to be "No" but when I run the application I can still click on the RTB and got a Ibeam cursor among my text. Is there a way to prevent a user being able to click on the text and get the ibeam...
3
4529
by: Tom | last post by:
I don't want to re-invent the wheel and am looking for a simple implementation of a text viewer or RichTextBox in read only mode that allows rapid file positioning within large data files without the time consuming and memory hogging associated with loading the entire file. Using the thumb to get close and then paging and scrolling to get exact placement within the file. Perhaps with only a few pages of data loaded into memory. I...
9
11939
by: Phill W. | last post by:
VB.Net 2005 SP1 Windows Forms Application What's the fastest way to append text to a TextBox? I have an application that monitors data written to text files. It needs to scan some fairly hefty files (typically ~15MB) and scanning the file pulling out the rows I want (typically ~10,000 of them) takes /comfortably/ under three seconds. In normal usage, this application will "follow" the end of these files as they are written to, so it...
0
8420
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
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...
0
8617
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
6176
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
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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...
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.