Sets the specified bounds of the TextBoxBase control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected override void SetBoundsCore( int x, int y, int width, int height, BoundsSpecified specified )
- Type: System.Int32
Typically, the parameters that correspond to the bounds not included in the specified parameter are passed in with their current values. For example, the Height, Width, or the X or Y properties of the Location property can be passed in with a reference to the current instance of the control. However all values passed in are honored and applied to the control.
The specified parameter represents the elements of the controls Bounds changed by your application. For example, if you change the Size of the control, the specified parameter value is the Size value of BoundsSpecified. However, if the Size is adjusted in response to the Dock property being set, the specified parameter value is the None value of BoundsSpecified.Notes to Inheritors
When overriding in a derived class, be sure to call the base class's method to force the bounds of the control to change. Derived classes can add size restrictions to the method.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.