none
Closing VB.NETCF 2008 exe in Windows Mobile 6 (device DS5) RRS feed

  • Question

  • Hi!

    Closing VB.NETCF 2008 exe in Windows Mobile 6 (device DS5):

    After running exe and working I wanted to close my app and tried do that by clicking on the right lower control  "X". Application disappeared visually, but I must close it by "Task Manager" by clicking "End Task".

    How can I close my app without going into "Task Manager"? How can I close it by clicking on the right lower control  "X"?

    Tuesday, September 22, 2015 11:59 AM

Answers

  • Hi Tomas,

    Windows Mobile 6 is designed to only close applications when it needs the memory back so you do not need to force it to close. The operating system will close your app eventually when it needs the resources.

    If you want to force the app to actually remove itself from memory, you could add a button or menu item that will actually tear down the app but as I stated above, this is not required.  Take a look at "WM_CLOSE" as your app could potentially use this window message to destroy itself. See

    https://msdn.microsoft.com/en-us/library/aa921571.aspx

    Sincerely,

    IoTGirl

    Tuesday, September 22, 2015 4:11 PM
    Moderator

All replies