简体   繁体   中英

Visual Studio 2008 won't run latest code after Build

I have a VS 2008 Windows Forms application written in VB, and have built a Splash screen that I'd like to show for 2-3 seconds before the main window is displayed.

In the Application Events I have added code to the OnInitialize event (in the namespace My ), and set the MinimumSplashScreenDisplayTime to 3000 milliseconds.

My issue is that even though VS builds the code without erros, what happens is the Main window is displayed with the Splash Screen (modeless, allowing clicks on the main window menu) in front of it for a few seconds.

I thought I had done everything right, so how can I force VS 2008 to run the latest code base ?

And how can I prevent the MainWindow from showing until the Splash screen is unloaded?

In the properties for the project choose your custom splash screen as splashscreen object for the project. This should automatically use your splash screen as the project's splash.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM