We help IT Professionals succeed at work.

How to embed Chrome or Firefox in windows form as webbrowser

High Priority
33 Views
Last Modified: 2019-11-27
I need to embed a webbrowser to link to a specific website that will only work in Google Chrome or FireFox - they are not supporting IE.

I am using windows forms in visual studio (vb.net)

Can I embed a webbrowser that will run Chrome or Firefox embedded in my form and NOT opening up in a separate window?

Thanks!
Comment
Watch Question

David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
More information is required.

1) Link to actual URL being visited.

2) Say whether you have access to the HTML of this URL to make HTML changes or is this some 3rd party, where you're trying to work around problems.

Author

Commented:
Many Websites using JavaScript seem to fail.
Trying (for example) www.Verifac.com in a Webbrowser on Visual Studio 2019 - you get an immediate 'js' error.

A different, third-party product that we need to access states that we should use Chrome or Firefox - hence the request to change the Webbrowser to use Chrome. Hopefully this will then stop the js errors, but certainly seems a good idea if the site is only rated for use with Firefox and Chrome.

This third-party site does, however, work in an Edge browser, but not in the VS Webbrowser or in a native IE11 browser window.
KimputerIT Manager
CERTIFIED EXPERT

Commented:
For Chromium, use this (CefSharp in Nuget):
https://www.telerik.com/support/kb/winforms/details/how-to-embed-chrome-browser-in-a-winforms-application

If the browser is allowed to browse anything OTHER than your own trusted sources, be sure to keep your app up-to-date with each browser update.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.