Form loading problem in WinCE

  • Thread starter Thread starter Jason Jacob
  • Start date Start date
J

Jason Jacob

To all,

I'm using WinCE.Net OS and Visual Studio 2003 with compact framework
service patch installed.

I'm now writing a window app under WinCE (2 forms). The main program
will first load the 1st form and show it by using "Application.Run
(frm01);"

Then the 2nd form will be loaded and show when A button on the 1st
form is pressed, somehow the 2nd Form will be loaded and shown but it
is always in a minimized mode, so I must activate the 2nd Form in
order to see (ie. select the form's window on the taskbar at the
bottom)

So what should I do to make the 2nd Form show as normal?? (at least
not minimized)

From Jason (Kusanagihk)
 
It depends on the order that you call the show-hide methods

Use in button A in form1:

Form2 f2 = new Form;
f2.Show();
f2.BringToFront();
this.Hide();
 
Back
Top