WebBrowser looping url from txt file...
I have one WebBrowser in my project that read info from a txt file...
(just 1 line)... But everytime that I open the program, the browser is
reloading all the time (like a loop) the url located at url.txt here's the
code:
Private Sub WebBrowser1_DocumentCompleted_1(sender As Object, e As
WebBrowserDocumentCompletedEventArgs) Handles
WebBrowser1.DocumentCompleted
Dim url As String = "url.txt"
Dim objReader As New System.IO.StreamReader(url)
WebBrowser1.Navigate(objReader.ReadLine)
objReader.Close()
End Sub
I'll be thankful if anyone could help me.
No comments:
Post a Comment