Form Display

  • Thread starter Thread starter MDB
  • Start date Start date
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?
 
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
 
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
 
Back
Top