JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Showing and Hiding Scroll Bars

Unlike other controls, there are well-defined times when scroll bars should disappear from your program. If the object you're scrolling can be entirely visible, there is no need for scroll bars, and you should remove them.

In general, you make a scroll bar disappear by setting its Visible property to False, and make it reappear by setting that property to True. (For an example of this, see "Scrolling Images" later in this chapter.) You also can use the Show and Hide methods.


Another option to disable scroll bars is by setting their Enabled property to False. Disabled scroll bars appear gray and don't display a scroll box.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor