Beginner stuff - Managing forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to understand how to manage forms, when I open a second form and the user clicks the x to close the form the next time I show that form the on load event does not kick?

also I am trying to show a small form with a progress bar I set the height and width before opening but when the window opens it's full size

Thank
Steve
 
the (X) only minimizes the FOrm, so Load shouldn't run again. Either use
the Activate event or change the MinimizeButton property to False so you get
an (ok) button.


--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



Steve K said:
I need to understand how to manage forms, when I open a second form and
the user clicks the x to close the form the next time I show that form the
on load event does not kick??
also I am trying to show a small form with a progress bar I set the height
and width before opening but when the window opens it's full size?
 
And in answer to your second question: By default all forms in a PocketPC
open in full screen, regardless of the size you make them in the designer,
unless you set the Form.FormBorderStyle property to None. If you want to
have a border on such a form you for instance have to draw a rectangle
yourself in the client area of the form. As an alternative you can also
create a Panel in your main form with the desired size and show / hide it
whenever you want. The latter is not really a new form, but it simulates the
behavior of a small form a bit.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

Steve K said:
I need to understand how to manage forms, when I open a second form and
the user clicks the x to close the form the next time I show that form the
on load event does not kick??
also I am trying to show a small form with a progress bar I set the height
and width before opening but when the window opens it's full size?
 
Back
Top