Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a program that opens a website in a WebBrowser control, and in it the elements aren't fine, also not all features of the site work as it tells me "xyz is not supported in this browser", so I think the browser in the WebBrowser control is IE not Edge.

What I have tried:

public System.Windows.Forms.WebBrowser webBrowserMain;
Posted
Updated 5-Sep-22 4:05am

 
Share this answer
 
Comments
FierceLion 5-Sep-22 5:46am    
Thx but this shows or changes the version of IE, I already made it int.MaxValue I think, but I want to change the browser in the WebBrowser control's type from IE to Edge.
Richard MacCutchan 5-Sep-22 7:07am    
The WebBrowser is a pre built control so I do not think that is an option. But check the documentation to be sure.
Google for "WebView2". You can get it from NuGet.
 
Share this answer
 
Comments
FierceLion 5-Sep-22 10:22am    
I watched a video about it, he was working with xml, can I make this in Controls toolbox and drag it in my WinForm app like WebBrowser control many times? I know only C# and HTML, I need many instances of the browser control: one in each tab in Tab(s) Control, and I need things like Navigate and DocumentCompleted and webBrowser1.Document.Body.GetElementByID("input").Submit() and many stuff like that like the ones in the regular WebBrowser control, how hard do you asses the job is gonna be for me?
Dave Kreskowiak 5-Sep-22 10:24am    
How about you try it and find out. YOU are the only one who can answer your questions.
Richard Deeming 7-Sep-22 8:31am    
From a simple skim of the documentation, you can see that WebView2[^] works in WPF[^], Windows Forms[^], WinUI v2[^] and v3[^], and in native Win32[^] apps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900