Using XP Themes

Posted by VIJI Saturday, July 4, 2009

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 ()

Application.EnableVisualStyles()

End Sub

0 Responses to Using XP Themes

Post a Comment