How To Remove Scroll Bars? & Auto Scroll?

Tags: javascript,css,.net,awesomium

Problem :

I want to remove scroll bars from 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 web control.

If there isn't a way to do this on web control, is there javascript or CSS code i can put to my webpage to achieve those two things?


Solution :

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 {
/* Optionally, disable scrolling on everything (not recommended because it's too strong) */
* {

There's more information searching "css remove scrollbars" or in this previous answer.

    CSS Howto..

    How can I control when my css transitions happen and when they don't?

    How best to use jQuery: with HTML or CSS for formatting

    How to create a image frame by css?

    How to order properties in a declaration block? [closed]

    How to print labels from a label printer using html

    how to set anchor tag text width using css?

    Difference in css position IE/FF, how to solv my problem?

    How to make rails load multiple css files

    How to make .less files to have .css syntax highlight in Vim?

    How to get the “text-justify:kashida” css property effect on to the arabic text excluding IE browsers

    How do I get this list to be seperated by a tab? (HTML/CSS)

    How to set the height with css to 100% and make it fluid?

    Non-responsive website - Viewport issue - Page showing zoomed in on mobile

    How to align a horizontal list to the center in css

    How does css inheritance work exactly?

    how do I zoom a background image on a div with background-size

    How to use nify javascript to make round corner box? Im using but not working

    How can I align the checkboxes in a form when using table display with CSS?

    How to change a position of css sprite image?

    How do you avoid class name collisions? [closed]

    How to remove “pictureframe” in Internet Explorer?

    How to make a progress bar like this in CSS

    How do I change tab size in Vim?

    How to split page and reveal stuff underneath?

    How to process which button is selected in an HTML form?

    How to change Kendo Excel Button Content Text

    How to handle text wrapping in CSS? [duplicate]

    How to apply css style to jquery effect

    how change all fonts of a telerik control by one shot

    How to show/hide div on click with stricly HTML/CSS