Compleat Cosing of VB.net CF program

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

Step 1 push the reset button under my IPaq
Step 2 run app.
Step 3 close app.

Problem:
When I reopen the app. it goes back to the state it was in when I
closed it. It goes back to the same screen with the data still in the
fields. I have to do another reset (Step 1) to get the program back
to the start.

Question:
How do I programacly close my app. so that it reopens in its default
state, on the main form with clear data fields.

Information:
My app has about 7 pages, all loaded at the start. I fill in data
fields and then send out the data through a serial to Bluetooth
adapter. The problem persists wether I send the data of not.

Thank you for you help,
Rich
 
On PocketPC applications don't actually close when you hit the "X" the
application minimizes (smart minimize). If you want to close your
application set Minimize=false which will give you and "OK" button instead of
an "X" button in the top right. This way you will close your application and
when restarted it will be at it's default state.
 
Rich,

You need to set MinimizeBox to false on your main form to get the app to
close rather than smart minimize. If you see an X in the upper right corner,
you have smart minimize, whereas if you see OK, then you have true close
button.
 
Back
Top