EDN Admin
Well-known member
Hi
I just upgraded from VS2008 to VS2010 (Service Pack 1). I have ported a VB.Net project i was working on in VS2008 over to VS2010 and the conversion was reported as being succesful with no errors.
However, i am now having problems with my splash screen in the VS2010 project. Basically i want the splash screen to display for 1000ms and then show the main form. I had this working fine in VS2008, but for some reason it doesnt work properly
now in VS2010. In VS2010, the splash screen doesnt close, it just stays there. The main form also now displays at virtually the same time as the splash screen, when it should only display after the splash screen is closed. To further
add to the confusion, if i have VS2008 and VS2010 open at the same time, the splash screen works as intended in both VS2008 and VS2010!
Here is how i set the delay for my splash screens. Note that the value stored in My.Settings.SplashDelay is an integer of 1000. I have tried commenting this setting out and just hardcoding an integer value of 1000 here, but i get the same result.
<div style="color:black; background-color:white
<pre><span style="color:blue Partial <span style="color:blue Friend <span style="color:blue Class MyApplication
<span style="color:blue Protected <span style="color:blue Overrides <span style="color:blue Function OnInitialize(<span style="color:blue ByVal commandLineArgs <span style="color:blue As System.Collections.ObjectModel.ReadOnlyCollection(Of <span style="color:blue String)) <span style="color:blue As <span style="color:blue Boolean
<span style="color:green Set the splash screen timeout.
<span style="color:blue Me.MinimumSplashScreenDisplayTime = <span style="color:blue My.Settings.SplashDelay
<span style="color:blue Return <span style="color:blue MyBase.OnInitialize(commandLineArgs)
<span style="color:blue End <span style="color:blue Function
<span style="color:blue End <span style="color:blue Class
[/code]
Anyone know whats going on here? Help would be appreciated.
<br/>
View the full article
I just upgraded from VS2008 to VS2010 (Service Pack 1). I have ported a VB.Net project i was working on in VS2008 over to VS2010 and the conversion was reported as being succesful with no errors.
However, i am now having problems with my splash screen in the VS2010 project. Basically i want the splash screen to display for 1000ms and then show the main form. I had this working fine in VS2008, but for some reason it doesnt work properly
now in VS2010. In VS2010, the splash screen doesnt close, it just stays there. The main form also now displays at virtually the same time as the splash screen, when it should only display after the splash screen is closed. To further
add to the confusion, if i have VS2008 and VS2010 open at the same time, the splash screen works as intended in both VS2008 and VS2010!
Here is how i set the delay for my splash screens. Note that the value stored in My.Settings.SplashDelay is an integer of 1000. I have tried commenting this setting out and just hardcoding an integer value of 1000 here, but i get the same result.
<div style="color:black; background-color:white
<pre><span style="color:blue Partial <span style="color:blue Friend <span style="color:blue Class MyApplication
<span style="color:blue Protected <span style="color:blue Overrides <span style="color:blue Function OnInitialize(<span style="color:blue ByVal commandLineArgs <span style="color:blue As System.Collections.ObjectModel.ReadOnlyCollection(Of <span style="color:blue String)) <span style="color:blue As <span style="color:blue Boolean
<span style="color:green Set the splash screen timeout.
<span style="color:blue Me.MinimumSplashScreenDisplayTime = <span style="color:blue My.Settings.SplashDelay
<span style="color:blue Return <span style="color:blue MyBase.OnInitialize(commandLineArgs)
<span style="color:blue End <span style="color:blue Function
<span style="color:blue End <span style="color:blue Class
[/code]
Anyone know whats going on here? Help would be appreciated.
<br/>
View the full article