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

Equivalent of WebBrowser.ObjectForScripting and WebBrowser.Document in WebView2 control

Thanks in advance. In my application, I am replacing the WebBrowser control with Microsoft's WebView2. I wish to know the equivalent of the below members of WebBrowser control in WebView2. WebBrowser.ObjectForScripting WebBrowser.Document Does…
DotNetSpartan
  • 931
  • 4
  • 20
  • 41
4
votes
4 answers

Edit HTTP Request header with WebView2

I am using the new WebView2 control that has recently been released for .NET and I need to add an authorization value to the request header when navigating to a site but am unable to find a way to do it. Since this is control is relatively new and…
mindsurfer_BS
  • 103
  • 2
  • 9
4
votes
1 answer

How to enable extension on WebView2

I've installed a Chrome extension on Microsoft Edge (Chromium) to play HLS video. I've tried on Microsoft Edge (Chromium) and it works fine. The HLS URL is http://localhost/hls/taiguo/playlist.m3u8 and on Microsoft Edge browser and it displays the…
J. Shen
  • 41
  • 1
  • 2
4
votes
1 answer

Is there WinForms control for Chromium-Edge HTML renderer?

Microsoft has recently released Edge browser which uses Chromium engine to render HTML. Is there a WinForms component which allows to embed it in a desktop application? I'm aware of CefSharp for WinForms, just looking if there's something supported…
Kel
  • 7,680
  • 3
  • 29
  • 39
3
votes
1 answer

Converting file path to URL with MFC

I have seen similar questions (e.g. Encode/Decode URLs in C++). But, for me: CString strURL; DWORD dwSize = _MAX_PATH; if (InternetCanonicalizeUrl(strFile, strURL.GetBuffer(_MAX_PATH), &dwSize, ICU_BROWSER_MODE)) { // still has backslash …
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
3
votes
0 answers

SplitContainer splitter movement is not visible on WebView control

I have datagridview and webview2 in splitcontainer.(orientation=horizontal, dock=fill) After placing the textbox instead of webview2, if I grab the splitter with the mouse and move it, the splitter's movement is visible. But when I place the…
haren
  • 33
  • 3
3
votes
2 answers

For loop only runs once with ExecuteScriptAsync method

Environment is C# and WinForms. I am trying to run a program that will create an image download element in an already created website. I am using WebView2 as the browser. I changed the for-loop to 2 iterations just to debug this issue. I can…
Mr. Dawit
  • 103
  • 2
  • 10
3
votes
2 answers

How to initialize Monaco Editor in WebView2 WPF?

I have this code: https://controlc.com/42eca8b5
user19586191
3
votes
1 answer

WPF WebView2 Error - source property cannot be set to null

To authenticate an API service, it is required for the user to sign into a webpage. If the sign-in is valid, an authentication code is appended to the end of a redirected Uri. The authentication code is then used in the oauth to get the key, etc...…
jgrmn
  • 134
  • 12
3
votes
0 answers

Is the MicrosoftEdgeWebview2Setup installer command line parameters documented? And return values?

Microsoft have the WebView2 Runtime bootstrapper called: MicrosoftEdgeWebview2Setup The document states that we should use these parameters: /silent /install. Is there an official list of the possible parameters? Is there an official list of the…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
3
votes
1 answer

Issue with WebView2 control inside WPF/Windows Form for a VSTO project

I have created a C# Outlook VSTO project with a wpf User control which is embedded in a Windows Form. The idea is to navigate to an specific website using the WebView2 control that was added to the wpf User control. The issue is that the control…
3
votes
1 answer

How can i check if "Microsoft Edge WebView2 Runtime" or "Microsoft Edge Insider Channels" canary is installed on PC using VB6

I am planning to add functionality to a small application developed in VB6 which will check the pre-requisites for a WPF application that uses WebView2 control. This small application will run first and determine if the "Microsoft Edge WebView2…
Imran Yaseen
  • 543
  • 1
  • 5
  • 20
3
votes
1 answer

What DLLs do I need for Delphi to run WebView2

I'm running WebView2 in my Delphi 11.1 application. On my dev machine (Win 11), it works normally. It works on test PC1(Win 10), but when I try running it on the other PC (also Win 10) it doesn't load the page. All PCs have Microsoft Edge WebView2…
Smilko
  • 43
  • 7
3
votes
0 answers

How to add a WebView2 Control (To replace the old unsupported WebBrowser Control) into VBA form in 2022?

I want to add a control to a VBA form that displays a preview of an Excel 365 online file once the user clicks on the file name in a list. I did this successfully in the past using WebBrowser Control: Now the problem is that this WebBrowser control…
Chadee Fouad
  • 2,630
  • 2
  • 23
  • 29
3
votes
1 answer

two way communication between c# and JS using webview2

I'm using a webview2-control in a winforms application. I use messages to communicate between c# and Javascript window.chrome.webview.addEventListener / window.chrome.webview.postMessage in Javascript event .CoreWebView2.WebMessageReceived and…
Florent Cauwe
  • 76
  • 1
  • 4