WindowState=Maximized on WinCE

G

Guest

Hi, I've found this problem on WinCE:

I create a form and set its WindowState to Maximized. Then I use this codes
to open the form

MyForm myform = new MyForm();
myform.ShowDialog();

Well, you can see that the form is displayed when I call the constructor and
then it is displayed again when ShowDialog method is executed.

I found this problem because I have to click on the OK button two times to
close the form! If I don't execute ShowDialog I can see the form just because
I set Maximized. This happens on WinCE.

Any solutions to this problem ?

Thank you in advance.

Keven Corazza
 
D

Daniel Moth

There are two thing you must do:
1. Make sure you are running SP2
2. Create a registry DWORD value to 0 HKLM\System\GWE\Animate

Cheers
Daniel
 
G

Guest

Yes, don't set its state in the constructor. Move it to something like the
Activate event.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top