Difference betwenn x-ing the Form und hide()

  • Thread starter Thread starter Gustavo Curve
  • Start date Start date
G

Gustavo Curve

Hi,

i got a persitent form, i need to show from time to time. I placed a "Hide"
button on it, which just calls me.hide(). When i use the X-Button from the
Form, everything works fine, but when using the hide function, the form is
not shown any more. What can i do?

Thanks in advance,
Gustavo
 
One (Hide) changes the Visible property, the other changes the WindowState
to Minimized.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
sorry, but i don't want the form to be minimized! The form is shown modal
and has to be "closed", but not be disposed or just minimized.

thanks so far,
Gustavo
 
The change the "MinimizeBox" property to false and the X will become OK,
which closes the Form. Hide does not close it either.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate
 
If you don't want to minimize or dispose the form, cache the handle to the
form. So long you can access the handle, the CLR will not collect and
dispose of it.

Cheers
Simon.
 

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

Back
Top