Form Display

M

MDB

Hello All, I just converted my application from VS2003 and CF 1.1 to VS2005
and CF 2.0. Now that I have done this my forms are not loading correctly
and cannot figure out why. What I have is a Splash form that loads all of
my application variables, inside this forms load event, I have a
LoadApplicaton() function which loads everything and then at the end of this
function, I create a new form and then call .Show(). For some reason, the
form just shows for split second (if that) and then goes back to my splash
form. This was not a problem in 1.1 however, is causing me a lot of
headaches in 2.0. Any Ideas?
 
P

Peter Foot [MVP]

In .NETCF 2.0 there was a change to the timing of the Form Load event, what
I think you are seeing is Load is called before the splash form is fully
displayed so after your Load method has finished the splash screen finishes
loading and grabs the focus. You should be able to work around this by
showing (or sending to the front) the new form on the Activated event
instead.

Peter
 
M

MDB

Thank you, I will try that out.

Peter Foot said:
In .NETCF 2.0 there was a change to the timing of the Form Load event,
what I think you are seeing is Load is called before the splash form is
fully displayed so after your Load method has finished the splash screen
finishes loading and grabs the focus. You should be able to work around
this by showing (or sending to the front) the new form on the Activated
event instead.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top