close app.

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

Markus Humm

Hello,

we're writing a VB .NET 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?

Hreetings

Markus
 
Hi,

Why not set the form's MinimizeBox property to False. This way you get
a real close button(OK) in the title bar in place of minimize(X)
button.
 
That behavior is actually by design for ALL Pocket PC applications. The
X at the top-right corner of the screen is actually the minimize button,
not a close button. The idea is that applications keep running until
free memory decreases below a certain threshold. At that point the OS
will start to close applications automatically to free up memory.

If you look at other Pocket PC applications, you'll notice they almost
all work this way.

However, as Dinesh pointed out, if you really need it to be a close box
instead, change the MinimizeBox to false and it will become and OK
button, which closes the form rather than minimizing it.

-- John
 
Back
Top