Microsoft please comment - progress on minimise problem using SP2

  • Thread starter Thread starter nzpcmad
  • Start date Start date
N

nzpcmad

There have been some comments about this in the group e.g.

"Re: Best Approach vs Any"

...."Unfortunately, there's a bug in .NET that minimizes all forms if a
form is loaded before the UI thread is finished constructing it's
primary form." ...

and I have posted about this a number of times e.g. "Problem with CF
SP2 with Form navigation".

I have a complex application with two level of "menus" (actually
buttons on the screen) and around 50 forms. I am really keen to use
SP2 because it is faster and has a numbers of fixes in the web
services area - which my application uses extensively.

I have reported the bug to Microsoft with a sample program that
demonstrates this to which I received this reply:

"We have filed a bug on this in our database against Windows CE 5.0
RTM concerning your .NET CF SP2 issue. We are currently investigating
this. Thank you for your feedback and helping us make Windows CE a
better product!

Thanks,

The Windows CE Product Feedback Team"

Unfortunately, fixing this in CE 5.0 does not help me. Is there any
chance of this being fixed in SP3? Or is there a good workaround?

Just to re-iterate - This problem does not occur if I use CF RTM.

Many thanks
 
Update for the group:

Alex suggested a workaround to this.

The code was:

currentForm.Hide ();
....
nextForm.Show ();

As Alex explained: "The reason the forms get minimized is because at
some point you do not have a visible form and the runtime thinks you
want the app hidden"

Reversing the order:

nextForm.Show ();
....
currentForm.Hide ();

stops the next form from minimising under SP2. It was never an issue
with RTM.

Each form has always had the

this.WindowState = FormWindowState.Maximized;

attribute set.

Many thanks
 
Back
Top