This documentation is archived and is not being maintained.
How to: Set Web Server Control Unit Properties
Visual Studio 2005
Width, height, and similar properties for Web server controls are set in units. Units are implemented as objects (the Unit structure), which allows you to specify a value and the measurement unit in various ways.
To set unit-based properties
-
Assign a reference to the Unit structure to your control.
The following code examples show variations on how to do this.
See Also
Show: