Hey Guys,
I'm using this piece of code:
To loop through a multi text box, everything works as it should, the only part im having trouble with is when its finished to display a message box to say the task is complete, is there a way to say "after the last loop display the task complete message"Code:'// LOAD THE URLS For Each URLline As String In formMassURLs.txtBoxMass.Text.Split(Environment.NewLine.ToCharArray, System.StringSplitOptions.RemoveEmptyEntries) '// SEND REQUEST Dim request As WebRequest = WebRequest.Create("http://api.site.com/get_backlinks.php?target=" & Trim(URLline) & "&count=" & numericController.Text & "&mode=domain&output=xml&AhrefsKey=" & Trim(txtBoxAhrefsKey.Text)) '// GET THE RESPONSE Dim response As WebResponse = request.GetResponse() '// THE DATASTREAM RETURNED BY THE REQUEST Dim dataStream As Stream = response.GetResponseStream() '// OPEN THE RESPONSE IN A STREAMREADER Dim reader As New StreamReader(dataStream) '// READ THE CONTENT TO THE END Dim responseFromServer As String = reader.ReadToEnd() '// RETRIEVE THE URL .XML Dim XMLdoc As New System.Xml.XmlDocument XMLdoc.Load(New StringReader(responseFromServer)) Dim list = XMLdoc.GetElementsByTagName("UrlFrom") For Each item As System.Xml.XmlElement In list listBoxMain.Items.Add(item.InnerText) Next '// CLEANUP reader.Close() response.Close() Next
cheers for any info guys
Graham




Reply With Quote