Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2007

Tip: Looking for answers? Try searching our database.

Form Display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MDB - 08 Nov 2007 16:43 GMT
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?
Peter Foot [MVP] - 09 Nov 2007 08:08 GMT
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

Signature

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

> 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
[quoted text clipped - 5 lines]
> 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?
MDB - 09 Nov 2007 11:07 GMT
Thank you, I will try that out.

> 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
[quoted text clipped - 14 lines]
>> 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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.