I am a bit unsure about this "Effect"... My code:
Public Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Dim myMainForm As New FormularioPrincipal
Dim mySplash As New MyClass.SplashScreen
If mySplash.ShowDialog() = DialogResult.OK Then
Application.Run(myMainForm)
End If
End Sub
Visual styles are not enabled in any place on the whole application. However
an external manifest is able to enable visual styles.
With this Code:
Public Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Dim myMainForm As New FormularioPrincipal
'Dim mySplash As New MyClass.SplashScreen
'If mySplash.ShowDialog() = DialogResult.OK Then
Application.Run(myMainForm)
'End If
End Sub
Visual Styles get enabled.
MyClass is a class library wich contains a Windows Form used for the splash
screen of several applications.
I've used this kind of coding before with no problems... Can't even imagine
what could be going wrong. Anyone has faced this problem before?