Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Panel ScrollBars Property

ASP.NET Panel ScrollBars Property


Panel Control Panel control


Definition and Usage

The ScrollBars property is used to set or return the position and visibility of scroll bars in the Panel control.

Syntax

Some Content

 

property Description
value Specifies whether scroll bars are displayed.

Possible values:

  • None - Default. No scroll bars are displayed.
  • Horizontal - Only horizontal scroll bars are displayed.
  • Vertical - Only vertical scroll bars are displayed.
  • Both - Horizontal and vertical scroll bars are displayed.
  • Auto - Display horizontal, vertical, or both scroll bars as needed.
  • |

    Example

    The following example sets the ScrollBars property of a Panel control to "Auto":

    Height="100px" ScrollBars="Auto">

    Some content

    Demo Example »


    Panel Control Panel control