Link to home
Start Free TrialLog in
Avatar of rpm
rpmFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Website works in Chrome but not WebBrowser component


I am trying to use a particular website, using a WebBrowser component in a VB.Net app.

I do not have any control over the website that I am trying to access, but it works fine through Google Chrome.

Looking at the source of the website in question, it has the following form defined:

<form name="frmSearch" id="frmSearch" method="post" onSubmit="return false;" action="MeetingList.php">

Within this form, is the following button:

<a id="SPFundGoButtonLink" href="javascript:DoSearch(gnSearchFund);"><img id="SPFundGoButtonImage" src="4057/images/go.gif" border="0"></a>

If I visit this site in Google Chrome and click the above defined button, it works fine, however if I navigate to the same site in a WebBrowser component and click the same button it generates the following error:

'gnSearchFund' is undefined.

Any idea why this works in Chrome but not the WebBroswer component, and more importantly, can anyone think of a workaround for this?
Avatar of DevAdmin
Flag of Italy image

The WebBrowser control is a managed wrapper around a component installed with Internet Explorer how you car read in this link:

When you try open with IE the page you have the same error?
Use CefSharp browser instead
Avatar of rpm



The page works fine in IE

Shaun Vermaak:

I'll give that a go, thanks.
Try read this post abount Controlling WebBrowser Control Compatibility
Avatar of rpm


No idea what to take from that document!
Read the part about the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
Avatar of rpm


I've followed the instructions for CEF, installed the NuGet package and set the target CPU to X64.

I then try to add a ChromiumWebBrowser component onto Form1, and I get the following error:

Failed to load toolbox item 'ChromiumWebBrowser'. It will be removed from the toolbox.

What am I doing wrong?
Avatar of rpm


Tried and failed to follow that document section.
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial