'I have always put the following code directly under the
'Inherits System.Windows.Forms.Form
'of the startup form.  I have never had an exception thrown because of it
'(knock on wood). Any other forms you show from the main form will also
'be theme'd.  Just make sure if a control has a FlatStyle property that
'it is set to System. 

    <System.STAThread()> _
    Public Shared Sub Main()
        If OSFeature.Feature.IsPresent(OSFeature.Themes) Then
            System.Windows.Forms.Application.EnableVisualStyles()
        End If
        System.Windows.Forms.Application.Run(New Form1)
    End Sub 'Main