ProtekNickz
Well-known member
Hi their i aint been on here in a while due to moving house ect.., Down to buisness, im working on a WebSearch kind of tool, which is easy to implement ect.. but what i'm trying to do is when the program has finished the search it Displays how i want it, meaning change the text positioning, body, basically the whole out look of the returned results, at the moment im trying somthing like:
bt im not 100% sure it this is the right way to takle it :\
cheers in advance
VB.NET:
Dim atoString As Boolean
Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click
atoString = True
webResult.Navigate("http://www.bbc.co.uk/iplayer/search?q=" & txtSearch.Text)
End Sub
Private Sub webResult_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles webResult.DocumentCompleted
If atoString = True Then atoString = False Else Exit Sub
Dim txtBBC As HtmlElement = webResult.Document.GetElementById("episode-title")
webResult.DocumentText = txtBBC.GetElementsByTagName("episode-title").Count 'THIS LINE WAS JUST A ROUGHT TEST
End Sub
bt im not 100% sure it this is the right way to takle it :\
cheers in advance