.NET Windows Forms -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
  • Select Properties
  • Select 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


    Reference: http://vijirajkumar.blogspot.com/2009/07/using-xp-themes.html


  • Comments

    No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: