JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Formatting Text in Labels

When you add labels to a form, you can make the label match the text's size by setting the AutoSize property to True. You also can format the text in a label with the Font property, setting it to a Font object. (We first saw the Font class in the "Creating Bold, Italic, Underlined, and Strikeout Text" topic in this chapter.)

Keep in mind that you can use labels as a borderless read-only text box, so formatting the text can be a very useful thing to do.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor