1
I am reading the contents of a textbox, and using a "loop for each" to pass the string in sequence to the url on localhost that contains php code:
$var = $_GET["nts"];
echo $var;
So far so good, the problem is that the loop does not wait for the full loading of the webbrowser document, so, for example, I cannot parse the html document of each string, the idea is to throw a string into the webbrowser and wait for the full loading of the webbrowser document, to launch the second string and so on.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim tb As String = TextBox1.Text
If String.IsNullOrEmpty(tb) Then
MsgBox("Null")
Else
For Each t As String In tb
If (String.IsNullOrWhiteSpace(t)) Then
Else
WebBrowser1.Navigate(String.Concat("http://localhost/a/as.php?nts=", t))
End If
Next
End If
End Sub
Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
End Sub