New Member
|
Post by FreeApp Software on Jan 6, 2017 22:28:32 GMT
Hey there. I am trying to make the WebBrowser using CEFSharp (Chromium Web Engine) So I would like to know how to know the current webpage title. I was able to get the webpage URL, not title. This code makes the thing hang:
Dim A As Task = wb.EvaluateScriptAsync("document.title") Dim B As JavascriptResponse = wb.EvaluateScriptAsync("document.title").Result WithEvents TW As New Timer
Private Sub wb_TitleChanged(sender As Object, e As TitleChangedEventArgs) Handles wb.TitleChanged
A.Start() With TW .Interval = 10 End With TW.Start()
End Sub Private Sub TWEnd() Handles TW.Tick If A.IsCompleted = True Then MsgBox(B.ToString) End If End Sub
Hope to get help
|
|
Junior Member
|
Post by antfusa on Jan 7, 2017 22:30:20 GMT
Do you mean c# (sharp) and the awesonium web ui (chrome like web com)? If so to get the title its kinda like this... (We used vb.net and tab controls but close enough) in our case the tab is the parent so parent.text=webcontrol1.title (Web control related to awesonium)
Hope this helps
|
|
Junior Member
|
Post by antfusa on Jan 7, 2017 22:31:02 GMT
Put that in loading frame complete
|
|
New Member
|
Post by FreeApp Software on Jan 8, 2017 17:26:08 GMT
Put that in loading frame complete It is NOT Awesonium. Awesonium has the separate property for page title and CefSharp does not
|
|
New Member
|
Post by FreeApp Software on Jan 8, 2017 17:26:30 GMT
And
|
|
New Member
|
Post by FreeApp Software on Jan 8, 2017 17:26:38 GMT
It is vb.net
|
|
Junior Member
|
Post by antfusa on Jan 8, 2017 17:28:06 GMT
Hmm. Idk what cefsharp is then?
|
|
New Member
|
Post by FreeApp Software on Jan 8, 2017 17:29:27 GMT
|
|
Junior Member
|
Post by antfusa on Jan 9, 2017 1:18:47 GMT
Well screw what we were using. That looks so much nicer to develop with. See what u did now we have to make another browser. Haha
|
|