Export (0) Print
Expand All

How to: Enable Visual Styles 

NoteNote

This topic applies only to Visual Basic projects.

Windows XP introduced a new look and feel to the Windows user interface, with controls that have rounded corners and that change color when you pause your mouse 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 look and feel.

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

NoteNote

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.

    NoteNote

    Visual styles are enabled by default.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft