简体   繁体   中英

Display image before form launch - Compact Framework

I have a Windows Mobile application where in the Main method I show the Main form:

[MTAThread]
static void Main()
{
    new MainForm().ShowDialog();
}

When the program starts I see the the typical animation loading:

在此输入图像描述

Instead of this animation I want to see an image (full screen), how can I do?

There you can find a complete sample on how to embedd a splash screen to your .NETCF application. .NET Compact Framework Sample: Splash Screen Don't be confused that link points to the .exe, this sample is made as an installer but as the end result you'll see the code itself.

One unfortunate thing about the CF SLR is that it shows that wait cursor down in the bowels when it starts JITting and loading classes. There's no way to get rid of it. You can create your own splash screen, but keep in mind that it won't show until the framework is loaded enough to display it unless it's a separate app. Even with a separate splash screen, that wait cursor will still be there, so it's not an "instead" like you want, but an "also".

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