reading a text file to display in text box 
Author Message
 reading a text file to display in text box

Quote:
>Could someone please inform me how i would display the text from a text

file
...
Another option, depending on what you need, is the LoadFile command for a
RichTextBox.  Details in the help file, and RTBoxes have some nice features
standard text doesn't.

Make sure to set the properties for the Right margin to some number greater
than zero [the default] or, due to a bug, it won't do the scrollbars
properly.

Michael Ball



Mon, 11 Mar 2002 03:00:00 GMT  
 reading a text file to display in text box
I am a beginner and have been asked to make a file reader.
Could someone please inform me how i would display the text from a text file
in a text box or label?
Thanks in advance for any reply.
R. Austin


Tue, 12 Mar 2002 03:00:00 GMT  
 reading a text file to display in text box
Set the Text Box multiline property to True and its ScrollBars property to 2
(vertical) and then use:

Open "c:\myfile.txt" For Input As 1
Text1.Text = Input(LOF(1), 1)
Close 1

Mike


Quote:
> I am a beginner and have been asked to make a file reader.
> Could someone please inform me how i would display the text from a text
file
> in a text box or label?
> Thanks in advance for any reply.
> R. Austin



Tue, 12 Mar 2002 03:00:00 GMT  
 reading a text file to display in text box
Thankyou..
It is appreciated


Quote:
> I am a beginner and have been asked to make a file reader.
> Could someone please inform me how i would display the text from a text
file
> in a text box or label?
> Thanks in advance for any reply.
> R. Austin



Fri, 15 Mar 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. I need to display the text of an html file in a text box

2. Displaying a text file in a text box

3. Reading a text file and piping it into a text box

4. Text Box Entry To Text Box Display?

5. Reading file name from text box and/or File List Box

6. Reading from a text file and writing toa text file from Vis Bas 6.0

7. Rich Text box displaying last inserted text?

8. grabbing text and displaying it in a text box

9. Displaying text in a multiline text box

10. Text Box Text Displays Question

11. Display Text from variable in text box

12. Displaying formatted text in a text box or grid

 

 
Powered by phpBB® Forum Software