How to: Enable Windows XP Visual Styles
Visual style is the user-modifiable appearance of the user interface of an application or operating system. By default, Windows XP provides a new visual style. The scroll bars and title bar of a Windows Form will automatically use the new visual style when the form is run on Windows XP. If your application calls themethod, most of your Windows Forms controls will automatically use the visual style when your application is run on Windows XP.
Windows XP visual styles support can also be enabled through the Enable Visual Styles check box in the Application pane of the Project Designer. For more information, see the topic.
To enable visual styles
To enable visual styles in the client area of a Windows form, add the following code to your application's Main method.
There are some Windows Forms controls that will look the same on all operating systems; implementing EnableVisualStyles has does not affect these controls. These include the, , , , and controls. Additionally, if you enable visual styles on some controls, the control might display incorrectly in certain situations. These include the control with a selection range set, the with tab pages aligned at the bottom or sides of the control, and the handling of surrogate fonts in the control.