Visual Basic: RichTextBox Control

DisableNoScroll Property

See Also    Example    Applies To

Returns or sets a value that determines whether scroll bars in the RichTextBox control are disabled.

Syntax

object.DisableNoScroll [= boolean]

The DisableNoScroll property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
Boolean A Boolean expression specifying whether or not the scroll bars are enabled, as described in Settings.

Settings

The settings for boolean are:

Setting Description
False (Default) Scroll bars appear normally when displayed.
True Scroll bars appear dimmed when displayed.

Remarks

The DisableNoScroll property is ignored when the ScrollBars property is set to 0 (None). However, when ScrollBars is set to 1 (Horizontal), 2 (Vertical), or 3 (Both), individual scroll bars are disabled when there are too few lines of text to scroll vertically or too few characters of text to scroll horizontally in the RichTextBox control.