Program Loading. Splash Screen?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

With Pocket PC resources being an issue and each form acting as a program a
lot of choices are needed when to use a new form and when to use panels with
..visible attributes.

I currently have 1 form for start up, 1 form for a lot of the features, and
1 form for changing data settings etc (lots of options).

I would like to remove the start up screen and use a full screen panel to
replace it, but the problem is that the main form takes several seconds to
load. This leaves the user wondering what is going on.

What is the best way to have a 'splash screen' work, while the main form
loads in the background?
 
Hi,

I think there is a misunderstanding. On Pocket PC forms do not act like
programs. So you can create multiple form applications and a form will
allocate memory only when it is loaded.

In your main form's load event you can display a splash form and hide that
form when your main form is fully loaded.

Please do not forget to call System.Windows.Application.DoEvents method
after calling Show method for the Splash screen.

Thanks

Ercan Turkarslan
Microsoft Mobile Devices Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thank you to both you and Ercan.

Unfortunately the article you linked is in C# but maybe I can get some ideas
from it.

Ercan, I thought forms acted as programs. I got that impression from other
people and from the fact that all forms show up in a list of 'Running
Programs' on most PPC 2003 Commercial utilities. This can be fixed by
leaving the form caption blank but I was afraid that would cause resource
problems (the form being loaded but not showing up inlist might cause it not
to close properly.

Also, when I was asking people how to close a form they told me never to
close a form, although this might have been because if you hide it you can
recall it quicker, maybe a splash screen is just an exception they didn't
mention. They said tat when the program was closed it would close all forms.
Don't know, I never got an answer so I left that on hold and moved on to
things I could do. No reason to be stagnant when you have so much basic
stuff to learn =)

Regards,
Jeremy Morris
 
Forms may show up in utilities which enumerate top level windows, but they
don't show up as separate processes.

It sounds as though you were asking questions that didn't include enough
details for people to understand what you were trying to do and give you a
reasonable answer.

Paul T.
 
Back
Top