I want to remove scroll bars from Awesomium.net web control.
In visual studio defualt web browser you can easily remove scroll bars like this.
Public Sub loadVideo(pLink As String)
WebBrowser1.ScrollBarsEnabled = False
End Sub
but i dont know how to do this on Awesomium.net web control.
If there isn't a way to do this on Awesomium.net web control, is there javascript or CSS code i can put to my webpage to achieve those two things?
Thanks.
I haven't used Awesomium, but it's probably best to remove the scrollbars in CSS. Even if the whole outer web control/page has no scrollbars, the page can have an element in it that takes up all or almost all of the view area and does have scrollbars.
It depends if you want to just hide the graphical scrollbar or disable scrolling. The usual way to stop an element scrolling is to use the CSS overflow
property, like so:
/* Disable scrolling on body */
body {
overflow:hidden;
}
/* Optionally, disable scrolling on everything (not recommended because it's too strong) */
* {
overflow:hidden;
}
There's more information searching "css remove scrollbars" or in this previous answer.