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
2009-02-17 15:31:23
+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
2009-02-17 15:34:14
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
2009-02-17 15:56:22
How are you planning on displaying the message? What are you looking to do? Create a splash page while you main form loads?
phsr
2009-02-17 17:45:39
yes !!!, how can i do it ?
Gold
2009-02-17 18:57:03
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
2009-02-19 11:49:51
You can open the .png file do a system ticks for 10-15 sec then close the .png and show the form
Nick S.
2009-04-01 01:37:38