Groups | Blog | Home
all groups > dotnet compact framework > april 2004 >

dotnet compact framework : SP2 - My App does not show main form - Orig Neville Lang


Paul [Paradise Solutions]
4/14/2004 5:16:49 PM
Hi there

I've been facing the same problems as Neville mentioned - putting
BringToFront(), Refresh() and even Focus() and Show() in the activate
event on my apps main form, but still the app loads, the 'system tray'
disappears to be replaced by the SIP on/off button, but the form fails
to appear.
I also removed all calls to DoEvents but still this occurs. Does any
one have any sugestions or insight as to what makes forms fail in this way?


Many thanks


Paul
Mike
4/15/2004 11:14:13 PM
Can you post the code and a screenshot from the emulator?

[quoted text, click to view]

Paul [Paradise Solutions]
4/16/2004 9:41:02 AM
I can try making the code postable - wil take a little work, but I don't
use the emulator, only real devices (iPaq 3700 series and Dell Axim X5)


Paul

[quoted text, click to view]
Paul [Paradise Solutions]
4/16/2004 10:22:49 AM
After looking at the code to post I found a DoEvents call in one of my
classes that I had missed. Once I removed it, the form loaded OK.
Therefore I have to agree wholeheartedly with Mr Lang that any use of
DoEvents during the contruction of a form has an effect on the form
displaying properly.


Paul

[quoted text, click to view]
AddThis Social Bookmark Button