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
control
Type: System.Windows.Forms.TextBoxThe text box in which to show or hide the vertical scroll bar.
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