It is strange that the WebBrowser control does not have the Enabled property, as you might expect. You can set the AllowNavigation property to false, which prevents the user from clicking links.
It turns out that it has the Enabled property inherited from Control. But you must explicitly pass it to Control to access it:
((Control)webBrowser1).Enabled = false;
You should be aware that this Enabled option completely disables any user interaction with the WebBrowser control. This includes a scroll bar, so once you set Enabled to false, the user cannot even scroll the web page in the control.
If this was more than you wanted, then setting the AllowNavigation property to false will cause the user to click on the links, but still allow them to scroll through the page. You should verify that this also stops Javascript onclick events from firing.
If you want to stop any events from firing on a page, you might achieve that some DOMs will work from WebForms code to a WebBrowser control. You probably also need to start disabling the input controls in WebBrowser. It all depends on how you want it.
source share