question

Darlixcx-7051 avatar image
0 Votes"
Darlixcx-7051 asked Viorel-1 answered

webview21 value doesn't work with textbox HELP ME

I'm trying to make the value of webview writable with TEXTBOX, but it doesn't work

WebView21.ExecuteScriptAsync("document.getElementById('msn').value = TextBox1.Text;")

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

Try this:

WebView21.ExecuteScriptAsync("document.getElementById('msn').value = 'TEST' ")

Then try this:

WebView21.ExecuteScriptAsync("document.getElementById('msn').value = '" & TextBox1.Text.Replace("'", "\'") & "'")


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you very much friend!!! it worked for me

0 Votes 0 ·