closing app.

  • Thread starter Thread starter Markus Humm
  • Start date Start date
M

Markus Humm

Hello,

we're writing a VB .NET 2003 app and have one problem:
I the user closes the app. most times it only gets
hidden in the background, but not really closed.

Our programmer says he can't distinguish between
closing the app. because the user said so and between
moving the app to background because another programm
was startet in the foreground (in this case our app.
should remain open).

How to achieve this?

Another question: is opennetCF 1.4 compatible
with WM 5.0 (esp. serial IO)? I don't yet have
the ability to test this in real life.

Hreetings

Markus
 
Set MinimizeBox to false to really close it (also look at the Closing
event). Otherwise, he shouldn't need to distinguish (response should be the
same).

Cheers
Daniel
 
And in response to question 2 - yes the OpenNETCF Serial code is compatible
with Windows Mobile 5.0 from a .NETCF v1.0 project. v1.4 doesn't support
VS2005 but you can use the dlls directly in your project. .NETCF v2.0 has a
built in Serial Port class - see the System.IO namespace.

Peter
 
Daniel said:
Set MinimizeBox to false to really close it (also look at the Closing
event). Otherwise, he shouldn't need to distinguish (response should be the
same).
Huh? I fear we misunderstood each other: I only want to close the app.
when the user clicks on the X in the upper right corner, but not when
another app. is launched. I interpret your answer so that launching
another app. fires the closing code as well. That is what I don't want.

Could you please clarify a bit what you meant?

Greetings and thanks for help so far.

Markus
 
Do you want the app to be closed or minimised by the user? These are two
different things on the PPC platform. To toggle between them you set the
MinimizeBox as I indicated to you (which will also change the appearance of
the top right corner to X or OK).

Opening other apps doesn't do anything to yours other than putting in the
background (which to you would seem the same as someone clicking on the X if
you had left MinimizeBox to true).

If you are still having troubles, could you please clarify your question?

Cheers
Daniel
 
Markus said:
Huh? I fear we misunderstood each other: I only want to close the app.

The "X" in the upper right is (counter intuitively) a minimize button
where as "Ok" is the close button. The form's MinimizeBox property
determines which one is displayed.
 
Back
Top