Share via


ScrollingHelper.DisplayVertScrollableIfNeeded Method (TextBox)

 

Makes a text box vertically scrollable if the text does not fit on one line, and hides the vertical scroll bar if the text fits on one line.

Namespace:   Microsoft.WindowsServerSolutions.Common
Assembly:  AdminCommon (in AdminCommon.dll)

Syntax

public static void DisplayVertScrollableIfNeeded(
    TextBox control
)
public:
static void DisplayVertScrollableIfNeeded(
    TextBox^ control
)
Public Shared Sub DisplayVertScrollableIfNeeded (
    control As TextBox
)

Parameters

Remarks

This method must be called whenever there is a change that can affect the scrolling, such as text changes, size changes, and font changes.

See Also

ScrollingHelper Class
Microsoft.WindowsServerSolutions.Common Namespace

Return to top