PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Form Display
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Form Display
![]() |
Form Display |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 "MDB" <MDB @ NO SPAM DOT COM> wrote in message news:%23dxaCaiIIHA.6108@TK2MSFTNGP03.phx.gbl... > 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? |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thank you, I will try that out.
"Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message news:EEEA1D6B-0017-414C-A9D4-FDC18C6F8DA5@microsoft.com... > 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 > > "MDB" <MDB @ NO SPAM DOT COM> wrote in message > news:%23dxaCaiIIHA.6108@TK2MSFTNGP03.phx.gbl... >> 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? > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

