Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.TextBox- The 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