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
3
votes
1 answer

The requested resource is in use. (Exception from HRESULT: 0x800700AA) - Microsoft WebView

I have following code to launch webview var env = await Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateAsync(userDataFolder: Path.Combine(Path.GetTempPath(), $"{Environment.UserName}_Browser")); await…
user12073359
  • 289
  • 1
  • 11
3
votes
0 answers

Printing from TEdgeBrowser in Delphi

Is there a way to print from the TEdgeBrowser implementation in Delphi? In the older TWebBrowser we used the following code that worked: ControlInterface.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, varIn, varOut); But the TEdgeBrowser…
Julian
  • 41
  • 2
3
votes
0 answers

WebView2 doesn't scale on scaled monitor

I have a form on which I was using the old webbrowser control. Support is going away, so I am upgrading to the new webview2 control. My entire app is scaling properly (on high DPI monitors) using these settings in the app.manifest: …
veevan
  • 194
  • 1
  • 6
3
votes
2 answers

Struggling to grasp WebView2

I've been messing around trying to learn this framework for a job for one week but I couldn't understand yet its pipeline, and how it is working. I delved into every tutorial on the internet, they are very few though. But I couldn't find a tutorial…
ibrahim koz
  • 537
  • 4
  • 15
3
votes
2 answers

How to enable Media AutoPlay in Microsoft WebView2?

I am using a WinForms application and within that I created a WebView2 instance to play media content using HTML5. I have been looking into documentation to find some way by which I can Enable AutoPlay in WebView2 such that my desktop application…
Imran Faruqi
  • 663
  • 9
  • 19
3
votes
1 answer

WebView2Loader.dll vs WebView2.dll

The company I work for developed an application that uses WebView2 to display a Edge browser within the app. The IDE we use (Delphi) provides a dll called "WebView2Loader.dll" to distribute along side the exe. When looking at how the WebView2…
Matt
  • 151
  • 1
  • 5
3
votes
2 answers

set Webview2 header or cookie

I want to set customized header for all requests that Webview2 makes. Please help. Basically I want to load website in webview itself so it is needed that I receive my header on all requests. MainWindow.xaml.cs using…
3
votes
2 answers

How can I get the callback data with WebView2

I'm building a WPF application and try to get the ajax callback data with the WebView2 control. WebApplication is a simple Login View, and login method code like this: $("#btn").click(function () { $.post("loginHandler.ashx", …
walKeeper
  • 31
  • 1
  • 4
3
votes
1 answer

Webview2 is not working in WPF .Net Core App setup

We have installed Microsoft Edge WebView2 runtime(x86) for WebView2. Refer below SS. We are using .NET Core 3.1 framework and WPF for our App development. Our webview2 runs fine in debug/release/publish mode in Visual Studio but it is not getting…
Amol Pawar
  • 251
  • 1
  • 15
3
votes
1 answer

How to use transparency in Webview2?

On C#, how to use transparency in Webview2? Is it possible? Does it work in WebBrowser but not WebView2?
BenGost
  • 71
  • 1
  • 4
3
votes
1 answer

WebView2 Download progress

Need to get download progress via WebView2. https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2downloadoperation?view=webview2-dotnet-1.0.865-prerelease async void InitializeAsync() { var env = await…
Ondrashek
  • 129
  • 2
  • 8
3
votes
2 answers

Triggering onbeforeunload in WebView2

This answer shows how to trigger the onbeforeunload event in a WebBrowser control in the following way: protected override void OnFormClosing(FormClosingEventArgs e) { if (!this.formsWebBrowser.IsDisposed) { //// Generate…
Erik Bunnstad
  • 96
  • 2
  • 7
3
votes
1 answer

Excel Add In: Clicking a link to a different domain works, but changing the location with JS doesn't

I want to redirect my add in to a URL in a different domain. I added the domain to the manifest like this: https://another.domain.com And I can verify that worked because I can add a normal link…
Victor
  • 9,210
  • 3
  • 26
  • 39
3
votes
2 answers

WinForm using webview2 with SSO

I have a client application that hosts a web browser control (WebView2). The client application is configured to use SSO so the current windows user is automatically logged-in to the application. When I navigate to a web application on our intranet…
pete757
  • 319
  • 4
  • 12
3
votes
2 answers

WebView2 (TEdgeBrowser) updated Delphi interface (e.g. ICoreWebView2Controller2)

The default Delphi 10.4.2 TEdgeBrowser interface is currently only the original-release WebView2. However, it seems that to have flicker-free load on non-white backgrounds we need to set the background color using ICoreWebView2Controller2. How to…
wordy
  • 539
  • 5
  • 15