Page 1 of 1

Some VB questions

Posted: Sun Aug 27, 2006 1:38 pm
by Elite747
First question is, is it at all possible to have a rich text box read info. from a text file?
2nd is how do I get FTP access?

Posted: Sun Aug 27, 2006 2:05 pm
by Tural
A site worth checking out.

Posted: Sun Aug 27, 2006 2:35 pm
by Elite747
*sigh*
Whatever happened to answering questions these days?
Is there somebody who can answer my questions or do I have to register to the forum? :(

Posted: Sun Aug 27, 2006 2:42 pm
by Tural
This is a Halo modding site. This question isn't about Halo, or modding, it's about programming. I gave you a link to a programming site, that is where you should check/ask.

Posted: Mon Aug 28, 2006 10:02 am
by Unilat
Its a very simplle fix.

Create a new system.io.streamreader and have it read the .txt file or whatever you want. Then assign a string value to the read contents and print it in the textbox.

Heres some sample code

Code: Select all

        Dim reader As New System.IO.StreamReader(".txt path")
        Dim lines As String
        lines = reader.ReadToEnd
        notebox.Text = lines
        reader.Close()