![]() ![]() | ||
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.
Tip |
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. |
![]() ![]() | ||