T
Terry Olsen
I paste the following code into each project to get XP theme support.
'Add this at the beginning of any program to enable Windows XP Visual Styles
<System.STAThread()> Public Shared Sub Main()
If OSFeature.Feature.IsPresent(OSFeature.Themes) Then
System.Windows.Forms.Application.EnableVisualStyles()
End If
Application.DoEvents() 'This must be here, otherwise buttons won't
stylize
System.Windows.Forms.Application.Run(New Form1)
End Sub 'Main
Is there a way I can set up the VS IDE to automatically put this code in
each form's code?
'Add this at the beginning of any program to enable Windows XP Visual Styles
<System.STAThread()> Public Shared Sub Main()
If OSFeature.Feature.IsPresent(OSFeature.Themes) Then
System.Windows.Forms.Application.EnableVisualStyles()
End If
Application.DoEvents() 'This must be here, otherwise buttons won't
stylize
System.Windows.Forms.Application.Run(New Form1)
End Sub 'Main
Is there a way I can set up the VS IDE to automatically put this code in
each form's code?