Bagikan melalui


How to: Enable Visual Styles (Visual Basic)

Note

This topic applies only to Visual Basic projects.

Windows XP introduced a new appearance and behavior to the Windows user interface, with controls that have rounded corners and that change color when you pause your pointer over them. By default, Windows-based applications created with Visual Basic automatically support visual styles, also known as Windows XP Themes. When run on a platform that does not support Windows XP Themes, the application reverts to the traditional Windows appearance and behavior.

If you do not want your application to support visual styles, you can change the property on the Application page of the Project Designer.

Note

XP visual styles support can also be enabled or disabled programmatically through the EnableVisualStyles method of the Application class. For more information, see the topic How to: Enable Windows XP Visual Styles.

To disable Windows XP visual styles

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Application tab.

  3. Clear the Enable XP visual styles check box.

To enable Windows XP visual styles

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Application tab.

  3. Select the Enable XP visual styles check box.

    Note

    By default, visual styles are enabled.

See Also

Tasks

How to: Enable Windows XP Visual Styles

Concepts

Windows XP Features and Windows Forms Controls

Other Resources

Managing Application Properties