![]() ![]() ![]() I tested using this code public DialogResult TopMostMessageBox(string message, string title, MessageBoxButtons button, MessageBoxIcon icon) I agree with Hans Passant in that the code needs to be re-evaluated as the design seems incorrect.Īs for the problem at hand, you should be able to resolve this by creating your own instance of a messageBox. If splash screen is 'always on top', the message box is inaccessible and unclickable.User won't notice it and thinks app is stuck. Any MessageBoxes opened appear behind splash screen, silently.This.MainForm = new FormMain(this.CommandLineArgs) Protected override void OnCreateMainForm() Protected override void OnCreateSplashScreen() Splash screen with WindowsFormsApplicationBase sealed class App : WindowsFormsApplicationBase Main window sometimes minimises when splash closes.Splash screen sometimes expires before main window open (user thinks app has crashed).Var splash = !args.Contains("-no-splash") īw.DoWork += (sender, eventArgs) => ShowSplash() Any better ideas? Splash screen with BackgroundWorker static void Main(string args) I've tried two splash screen designs, they each have problems. Sometimes this code pops up message boxes. The main window constructor is slow because it exercises thousands of lines of code (some of it beyond my influence). My WinForms app's main window is slow to load (up to 20 seconds, depending on arguments), so it needs a splash screen.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |