PC Review


Reply
Thread Tools Rate Thread

Form Display

 
 
MDB
Guest
Posts: n/a
 
      8th Nov 2007
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?

 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      9th Nov 2007
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:%(E-Mail Removed)...
> 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?


 
Reply With Quote
 
MDB
Guest
Posts: n/a
 
      9th Nov 2007
Thank you, I will try that out.

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:EEEA1D6B-0017-414C-A9D4-(E-Mail Removed)...
> 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:%(E-Mail Removed)...
>> 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?

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Form: display query result and update based on form entrie Bryan Microsoft Access 0 25th Mar 2009 03:28 PM
Display totals on a form of selected data/Change query fields from form weircolin@googlemail.com Microsoft Access Form Coding 5 14th Aug 2006 04:06 PM
Can I cursor through a Master form and display a synchronized Detail form? Shayne G. Wright Microsoft Access Forms 1 26th Jan 2005 10:26 PM
using an unbound form to search odbc/sql and display results on that same form... Lee Taylor-Vaughan Microsoft Access Form Coding 0 30th Nov 2004 05:54 PM
Form Display Problem, Flickering, display delay =?Utf-8?B?SmFtZXMgTGk=?= Microsoft Dot NET Framework Forms 1 10th Oct 2004 08:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.