I have an application with a main form, on loading the main form asks the user to select a file to work with. I have now been asked to add a splashscreen to the project so did the following:
* Right clicked in solution explorer and added the splashscreen
* Went into project properties and added the splashscreen to the dropdown for splashscreen and then clicked "View Application Events"
* Within here I have added the following code:
Now when I run the application the splash screen shows but within, a second the openfiledialog has appeared and hides the splash screen.
Commenting out the code above I still get the same effect.
What have I done wrong?
regards,
Matt
* Right clicked in solution explorer and added the splashscreen
* Went into project properties and added the splashscreen to the dropdown for splashscreen and then clicked "View Application Events"
* Within here I have added the following code:
VB.NET:
Protected Overrides Function oninitialize(ByVal commandlineargs As System.Collections.ReadOnlyCollection(Of String)) As Boolean
Me.MinimumSplashScreenDisplayTime = 5000
Return MyBase.OnInitiallize(commandlineargs)
End Function
Now when I run the application the splash screen shows but within, a second the openfiledialog has appeared and hides the splash screen.
Commenting out the code above I still get the same effect.
What have I done wrong?
regards,
Matt
Last edited: