hi
how would i go about changing this code to use a listbox and not this path to file thanks.("C:\TestText.txt")
Code:Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim s() As String = System.IO.File.ReadAllLines("C:\TestText.txt") MessageBox.Show(s(0)) 'First Line MessageBox.Show(s(1)) 'Second Line End Sub End Class


Reply With Quote


Bookmarks