Published app takes a long time to load
Hello,
Whenever I publish my app, or when I run the exe from teh debug folder it takes a couple of seconds before the splash screen shows.
However, when I run it from within VB (by pressing the "play" button) the splash screen shows immediately.
What could be the cause of this?
Re: Published app takes a long time to load
Build the application to the release folder and see what you get.
Also, can you show us the code you're using to load the splash screen and other options?
Re: Published app takes a long time to load
ApplicationEvents.vb
Code:
Namespace My
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize( _
ByVal commandLineArgs As _
System.Collections.ObjectModel.ReadOnlyCollection(Of String) _
) As Boolean
'Me.MinimumSplashScreenDisplayTime = 2000
Return MyBase.OnInitialize(commandLineArgs)
End Function
End Class
End Namespace
Splashscreen1.vb
Code:
Public NotInheritable Class SplashScreen1
Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
BackColor = Color.White
TransparencyKey = BackColor
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
End Sub
End Class