I always have a problem with this. I get an error when trying to build the program "argument exception unhandled". Any help would be appreciated, thanks.
Private Sub addBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addBtn.Click
Dim newLineIndex As Integer = 0
If My.Computer.FileSystem.FileExists(path & "stocks.txt") Then
Do Until newLineIndex = -1
lstdisplay.Items.Add(txtinput.Text)
Loop
End If
End Sub