Wapiti,
This is a FAQ item because the behavior is so completely non-intuitive. If
you set your main form's MinimizeBox to false, the X will become OK and
clicking it will be the same as calling Close. Here's a link to the entire
FAQ:
http://msdn.microsoft.com/mobility/p...Q/default.aspx
--
Ginny Caughey
..Net Compact Framework MVP
"Wapiti" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It appears to me that me.close() will completely kill the application,
> while
> the controlbox's X button only hides the program. Is this correct?
>
> If not, could I be possibly causing this behaviour inadvertantly?
>
> If so, why? And how can I make it completely kill my program when the
> user
> clicks the X?
>
> Is there an unload type event, as we used to use in v6, that lets us know
> the app is closing?
>
> What event does one use to capture the user clicking the control box's X?
>
>