O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Web Form Formatting

When designing Web pages, you will need to consider how to give them a more pleasant and attractive look without eliminating their readability. There are two ways to do this in ASP.NET Forms—through formatting properties of the WebControl base class and through Cascading Style Sheets (CSS).

WebControl Strongly-Typed Properties

Web controls descend from the WebControl class, which contains various properties for display formatting. These properties are listed in Table 26.4.

Table 26.4. WebControl Strongly-typed Formatting Properties
PropertyDescription
AccessKeySpecifies a keyboard shortcut key to set focus to the WebControl.
BackColorBackground color of the WebControl.
BorderColorBorder color of the WebControl.
BorderStyleBorder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required