[HELP]Open Dialog

Posts 1–3 of 3 · Page 1 of 1
[HELP]Open Dialog
Well
Code:
OpenFileDialog2.showdialog()
        Dim opener As New System.IO.StreamReader(OpenFileDialog2.FileName)
        ListBox2.Items.Add(opener.ReadToEnd)
        opener.Close()
    End Sub
In a list box I load a file but it just Load the 1Line and no the other lines of text..
lol You need help for everything..
Try this:

Code:
Dim OpenTheFile As New OpenFileDialog
        OpenTheFile.ShowDialog()
        Dim Reader As New IO.StreamReader(OpenTheFile.FileName)
        While Not Reader.EndOfStream

            ListBox1.Items.Add(Reader.ReadLine)

        End While
(There aren any youtube tuts for listboxes!
thanks
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us