Thought I'd try and stump you today.
I got WeView2 to show a web page correctly and wondered if its possible to pull the value of a textbox on the web page into the VB form.
I found this code. Added a button to the form and onclick, run the code, but it does not appear to pull the value over.Code:Dim jScript As String = "document.getElementById('WH').value;" Dim t As Task(Of String) = WebView22.CoreWebView2.ExecuteScriptAsync(jScript) Me.WebView21.CoreWebView2.ExecuteScriptAsync(jScript)
Is there an Import I am missing?




Reply With Quote
