PC Review


Reply
Thread Tools Rate Thread

Compleat Cosing of VB.net CF program

 
 
Rich
Guest
Posts: n/a
 
      19th Nov 2004
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      19th Nov 2004
It looks like you got "trapped" into "smart minimize" functionality on Pocket
PC's - it means that your app is not actually closed, but just minimized
(send to back ground). Take a look at this to find out how to change this
behaviour:

http://wiki.opennetcf.org/ow.asp?Com...eSmartMinimize

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com
www.opennetcf.org

"Rich" wrote:

> 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
>

 
Reply With Quote
 
=?Utf-8?B?TWFyayBBcnRlYWdhIDxNVlA+?=
Guest
Posts: n/a
 
      19th Nov 2004
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.

---
Mark Arteaga
..NET Compact Framework MVP
www.neotericsdc.com


"Rich" wrote:

> 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
>

 
Reply With Quote
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      19th Nov 2004
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.

--
Ginny Caughey
..Net Compact Framework MVP



"Rich" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstalled Program, but Program Name Remains in Program & Featur kuyarog Windows Vista General Discussion 3 2nd Dec 2007 12:26 AM
Vista install will not compleat =?Utf-8?B?YmVha2Vy?= Windows Vista General Discussion 3 4th Aug 2006 04:20 PM
Start Menu Question:Owner list not as compleat as All User program list, Why? Tom Duprex Windows XP New Users 1 28th Nov 2005 04:58 PM
Help. I am creating a Program for college, in which the Program will read a Folder and create a HTML page. Paul Microsoft VB .NET 5 15th Jul 2005 03:04 AM
my program won't work on computer without framework, dow do i make a program that runs on every windows 2k/xp system ? bart Microsoft C# .NET 11 26th Jan 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:04 PM.