tags:

views:

366

answers:

2

How I can show any message before the main form is loaded in Windows CE?? (I work in WinCE)

A: 

The standard way of doing it would be to add a delegate for the form's Load event and do a MessageBox.Show in that delegate. I haven't used WinCE, though, so I don't know if it would work there, though.

R. Bemrose
+1  A: 

In your main function in program.cs, before the main form is created, you could call a message box with MessageBox.show, specifically: (this example if from a winforms app, so the Application.EnableVisualStyles() probably doesn't apply, but it should work the same)

 static void main()
 {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    MessageBox.Show("Here is your message");
    Application.Run(new MainForm());
 }
phsr
thank's for the help, i have the Main form that load database and fill comboBox whit database. it take for 10-15 second. i need that in this time will be any message. how can i do it ? (i dont want MessageBox)
Gold
How are you planning on displaying the message? What are you looking to do? Create a splash page while you main form loads?
phsr
yes !!!, how can i do it ?
Gold
I'm not sure how to create a splash screen on WinCe, you should be able to create a second form and show that while you are doing your database interaction then close that form and load your main form once that is completed
phsr
You can open the .png file do a system ticks for 10-15 sec then close the .png and show the form
Nick S.