Rank: Newbie Groups: Member
Joined: 11/21/2018 Posts: 1
|
Lookin for events that webbrowser control uses ie DocumentComplete, does Webcontrol have these and I also need to replace tags, with images after document has loaded, is this possible ie:
Dim theElementCollection As Windows.Forms.HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")
For Each curElement As Windows.Forms.HtmlElement In theElementCollection
Dim controlName As String = curElement.GetAttribute("src").ToString
If Microsoft.VisualBasic.Left(controlName, 5) = "http:" Or Microsoft.VisualBasic.Left(controlName, 6) = "https:" Then curElement.SetAttribute("src", controlName) Else controlName = controlName.Remove(0, 4) curElement.SetAttribute("src", fnGetIncomingEmailImage(controlName, myID, myProject)) End If
Next
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
|