Questions tagged [webview2]

Use the tag for the questions about Microsoft Edge WebView2 control. For current issues check https://github.com/MicrosoftEdge/WebView2Feedback/issues

Microsoft Edge WebView2 control uses Microsoft Edge (Chromium) as the rendering engine.

It can be used in Win32 C++ or .NET (WPF or WinForms) and WinUI 3 applications.

For further information, see the WebView2 documentation or the WebView2 feedback project for bugs and feature requests.

727 questions
0
votes
1 answer

How to use CopyFromScreen to create an image of a win32 control in a WPF Window

I want to create an image from a win32 control (ie WindowsFormsHost, Hwndhost , webview2) being displayed in a WPF window. Am I correct that RenderTargetBitmap will not work for these kinds of controls? Assuming I am correct, I am looking at the…
darbid
  • 2,545
  • 23
  • 55
0
votes
1 answer

WebView2 CallDevToolsProtocolMethodAsync issue with Fetch.continueRequest

I'm using WebView2 in a .net 5 WPF app and have been playing with the devtools protocol as a means of intercepting specific requests for assets. In looking at the Chrome dev docs (https://chromedevtools.github.io/devtools-protocol/), it's possible…
gplumb
  • 712
  • 6
  • 29
0
votes
3 answers

How to distribute my Vb.net Webview2 app?

So I developed an vb.net app with webview2. My problem is: if I copy the entire debug folder to a new computer, It works. But if I create an installer with the entire debug folder, it does not work. Any idea? I'm using the stable package from…
0
votes
1 answer

WPF WebView2 read same page after change content

I have a question in WebView2 I have loaded a page, if its content changes I need to reload? In previous project using WebBrowser.DocumentCompleted, now is not using WebBrowser. Thank you
Jan Grepl
  • 1
  • 1
0
votes
1 answer

In the task manager why does Cefsharp created browser instance does not show embedded browser webview where as webview2 shows?

I created a browser instance using Cefsharp library. In the task manager I see only the below processes and not embedded browser webview. But, when I created browser instance using the Microsoft Edge WebView2, I see that process as well present.…
Chaitanya
  • 3,399
  • 6
  • 29
  • 47
0
votes
1 answer

Webview2 SPA SSO

Is it possible to setup SSO with oauth and open id connect between a SPA that runs only in the browser and another SPA that runs in a webview2 within a WPF application? I can not manage to get it working. It does not seem like the SPA in the browser…
0
votes
0 answers

Print to named printer from web app using WebView2 and C# windows forms application

I have a web application that produces various reports/documents/labels that need printing. Depending on the report a different local printer is used. Most go via the A4 laser, but some need to be printed on 1 of 2 different local label printers.…
jimmy
  • 709
  • 3
  • 15
  • 33
0
votes
1 answer

EnsureCoreWebView2Async "invalid window handle" exception in Winform

when attempting to replace an AxWebBrowserwith WebView2 in an old winform form i get an "invalid window handle 0x80070578" exception. at first it was due to an older version of Edge but after dating to Canary it was working fine in a standalone…
Danw25
  • 306
  • 2
  • 13
0
votes
0 answers

WebView2 FrameNavigationCompleted Event for VB.NET

I'm looking for the WebView2 FrameNavigationCompleted Event in VB.NET. I couldn't find any examples. So far i have this: Async Sub InitializeAsync() Await MyWebView.EnsureCoreWebView2Async() AddHandler…
Desz
  • 31
  • 7
0
votes
2 answers

Autofill Proxy requirements webview2

I'm creating a custom internet browser using winforms and webview2 and whenever I search for something when using say a school internet it has a proxy box asks for my username and password. How can I autofill this box every time it opens
Redstone145
  • 103
  • 2
  • 8
0
votes
1 answer

Does WebView2 and/or CoreWebView2 expose a website's Frames?

I am probably looking at one of the most frequently asked question when automating a website - How do I wait for the HTML to be ready? This question is complicated even more by Frames. I see the Frame Navigation Complete event which exposes only…
darbid
  • 2,545
  • 23
  • 55
0
votes
1 answer

WebView2 in PowerShell Winform GUI

I have not been able to find any information on this so I'm not sure its entirely possible. I'm currently trying to integrate the WebView2 control into my PowerShell Winform GUI. I can see while debugging my script that the webView2 control is…
dev_weeb
  • 125
  • 1
  • 11
0
votes
0 answers

WebView2 HostObjectToScript throws runtime System.NotImplementedException exception when trying to execute a passed-in function

Problem: HostObjectToScript throws exception when trying to execute a passed-in function Scenario: WPF application has a WebView2 tab embedded and exposes an object for scripting using CoreWebView2.AddHostObjectToScript(). I'm able to access this…
0
votes
0 answers

How could I detect new window open in c# webview2

I'm currently using webview2 I used this.Topmost = true;because the program should always stay on Top. When using webview2, in certain sites, when the button in pressed, a new window may appear instead of changing the current window. In this case,…
리운모
  • 19
  • 2
0
votes
1 answer

Manage Dialogbox in the Webview2 (WPF)

I would like to manage the dialogbox generated by the webview2. Example : Confirm a command or download. I saw that maybe it was the CoreWebView2.ScriptDialogOpening event. But I don't know how to use it. So, have you an example because I don't find…