Hide Scrollbars in the webBrowser control

I am working on an HTML display control for windows forms. I am using the webBrowser control as the base for my control and I need to hide the webBrowsers scroll bar, as it looks bad, will never be used, and makes the control look like a webPage which ruins the layout. Currently the scroll bar renders on the control looking all dejected and greyed out. Is there way to simply remove it all together?


There is a property:

webBrowser1.ScrollBarsEnabled = false;

Specifies whether the WebBrowser control should have scrollbars or not.

They "can" appear however if the viewed web page is larger than the current control's size (not in all cases).

This answer Allow scroll with mouse but don't show browser scrollbars? shows this method:

void webBrowser1_DocumentCompleted(object sender, 
                                   WebBrowserDocumentCompletedEventArgs e) {
  webBrowser1.Document.Body.Style = "overflow:hidden";

Need Your Help

How to return an error in an Ajax scenario

jquery asp.net ajax asp.net-mvc

I am using ASP.NET MVC with jQuery. I have the following MVC Action that returns a partial page on Success. On Application Error, I am not sure what to send it for correctly handling it at the client

Android: ScrollView Issue

android layout scrollview

I have had a number of problems with ScrollViews. Recently I tried to create a LinearView which content exceeds the screen size so I created the new layout with parent element ScrollView and set its