user3111136
user3111136

Reputation: 43

how to hide scrollbar in gecko webbrowser control in c#

i am trying to hide scrollbar of GeckoFx WebBrowser control,in Windows forms there is method to hide scrollbar webBrowser1.ScrollBarsEnabled = false; but in GeckoFx Webbrowser there is no property like that i am using Navigate Method geckowebbrowser.Navigate("Url");

Upvotes: 3

Views: 1968

Answers (1)

Sire
Sire

Reputation: 4348

This works. You can create your own ScrollBarsEnabled property if you want.

webBrowser1.Document.Body.Style.CssText = "overflow: hidden ! important;";

Upvotes: 3

Related Questions