Saturday, July 4, 2009

Using XP Themes

To use XP Themes in Windows forms, we need to do the following.

1. Set the Theme property of Computer to Windows XP (Right click On Deskop -> Properties-> Themes -> Windows XP

2. Set FlatStyle property of the control to System. (For Example, Button's FlatStyle property to System.

3. Call EnableVisualStyles in the Constructor of the Form

Public Sub New ()


End Sub

No comments:

Post a Comment