Total .NET Analyzer Rule Documentation  

LabelFlatStyle Rule

The control's FlatStyle property is set to a value that does not allow Windows XP visual styles.

Remarks

The FlatStyle property value that you have set for this control does not allow Windows XP Visual styles. If you would like the control's appearance to be determined by the user's operating system, you should set the FlatStyle property to System.

Resolution

Unless you set an object's FlatStyle property to 'System', the object cannot display controls using Windows XP visual styles. To change the FlatStyle property to System, change the property for each control to 'System' (using the Windows Form Designer Properties Window).

Note that to support Windows XP visual styles, you also need to include a manifest (an XML file in the same directory as your executable file) with your executable. The manifest should bind your application to Version 6 of the Comctl32.dll (if it is available).

See Also

Manifests

Windows XP Visual Styles