473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Is there an equivalent of exit() for quitting a smartdevice application ?

How can I quit a smartdevice application ?

After I click the right-hand(up) "X" button in the Pocket
PC 2002 Emulator,it seems that the smartdevice
application has not been closed.
(My smartdevice app has three forms.
Every form has a "X" button which is close to
the time information.)
Why? what happened when I click the button?

thx for answering my qestion.^^
Nov 15 '05 #1
8 2492

"Eric" <u0******@cc.ncu.edu.tw> wrote in message
news:0a****************************@phx.gbl...
How can I quit a smartdevice application ?

After I click the right-hand(up) "X" button in the Pocket
PC 2002 Emulator,it seems that the smartdevice
application has not been closed.
(My smartdevice app has three forms.
Every form has a "X" button which is close to
the time information.)
Why? what happened when I click the button?

thx for answering my qestion.^^


For some reason the "X" is a *minimize* button. When you disable
the minimize button you will get an "ok" button, which is the real "close"
button.

Apparently smart-device applications should never close, instead they should
minimize. The O/S will make sure not more than one version of the app
is running. It is however up to the programmer to free up resources
on "minimize".

Hans Kesting
Nov 15 '05 #2
If I use a socket to connect to a server in my smart-
device application,does the "ok" button free up all
resources including the socket?

It's more easier and natural for me to use the "ok"
button to close my app and free up all resources.And then
start my app again whenever I want.The "X" button really
makes me confused when I want to restart my app.
Can I just use the "ok" button in my app or it's better
for me to use the "X" button ?
-----Original Message-----

"Eric" <u0******@cc.ncu.edu.tw> wrote in message
news:0a****************************@phx.gbl...
How can I quit a smartdevice application ?

After I click the right-hand(up) "X" button in the Pocket PC 2002 Emulator,it seems that the smartdevice
application has not been closed.
(My smartdevice app has three forms.
Every form has a "X" button which is close to
the time information.)
Why? what happened when I click the button?

thx for answering my qestion.^^
For some reason the "X" is a *minimize* button. When you

disablethe minimize button you will get an "ok" button, which is the real "close"button.

Apparently smart-device applications should never close, instead they shouldminimize. The O/S will make sure not more than one version of the appis running. It is however up to the programmer to free up resourceson "minimize".

Hans Kesting
.

Nov 15 '05 #3
Just call Close() from your main form.

Works for me.

jim

"Eric" <u0******@cc.ncu.edu.tw> wrote in message
news:0a****************************@phx.gbl...
How can I quit a smartdevice application ?

After I click the right-hand(up) "X" button in the Pocket
PC 2002 Emulator,it seems that the smartdevice
application has not been closed.
(My smartdevice app has three forms.
Every form has a "X" button which is close to
the time information.)
Why? what happened when I click the button?

thx for answering my qestion.^^

Nov 15 '05 #4
To add to this, the main form must have its "MinimizeBox" property set to
false. Otherwise, when the X is clicked on the main form, the application
will be minimised, rather than exiting. One problem with this, is that when
the "MinimizeBox" property is changed, the X in the top right hand corner
changes to an "Ok" button. As far as I know, there is no way around this.

Hope this helps,

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"Jim H" <no****@jimsaccount.com> wrote in message
news:OV*************@TK2MSFTNGP11.phx.gbl...
Just call Close() from your main form.

Works for me.

jim

"Eric" <u0******@cc.ncu.edu.tw> wrote in message
news:0a****************************@phx.gbl...
How can I quit a smartdevice application ?

After I click the right-hand(up) "X" button in the Pocket
PC 2002 Emulator,it seems that the smartdevice
application has not been closed.
(My smartdevice app has three forms.
Every form has a "X" button which is close to
the time information.)
Why? what happened when I click the button?

thx for answering my qestion.^^


Nov 15 '05 #5
No it doesn't. The MinimizeBox property can be set to true. I just tested
this and calling Close() from inside MyForm1 results in the process exiting
cleanly. I don't set the MinimizeBox property to false in any of my
applications.

jim

"Munsifali Rashid" <mun.news@#RemoveToReply#cordlessmouse.co.uk> wrote in
message news:er**************@TK2MSFTNGP11.phx.gbl...
To add to this, the main form must have its "MinimizeBox" property set to
false. Otherwise, when the X is clicked on the main form, the application
will be minimised, rather than exiting. One problem with this, is that when the "MinimizeBox" property is changed, the X in the top right hand corner
changes to an "Ok" button. As far as I know, there is no way around this.

Hope this helps,

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"Jim H" <no****@jimsaccount.com> wrote in message
news:OV*************@TK2MSFTNGP11.phx.gbl...
Just call Close() from your main form.

Works for me.

jim

"Eric" <u0******@cc.ncu.edu.tw> wrote in message
news:0a****************************@phx.gbl...
How can I quit a smartdevice application ?

After I click the right-hand(up) "X" button in the Pocket
PC 2002 Emulator,it seems that the smartdevice
application has not been closed.
(My smartdevice app has three forms.
Every form has a "X" button which is close to
the time information.)
Why? what happened when I click the button?

thx for answering my qestion.^^



Nov 15 '05 #6
Are you testing this on the emulator or the Pocket PC device itself? As far
as I remember, clicking the X on the emulator would cause the process to
exit, regardless of the what the MinimizeBox property was set to. However,
on the handheld device, if this property was set to true, clicking on the X
would simply cause the application to minimise, rather than exit.
Re-launching the application would simply restore its window and resume from
where it was minimised.

Regards,

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"Jim H" <no****@jimsaccount.com> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
No it doesn't. The MinimizeBox property can be set to true. I just tested this and calling Close() from inside MyForm1 results in the process exiting cleanly. I don't set the MinimizeBox property to false in any of my
applications.

jim

Nov 15 '05 #7
I tested on both. You are correct, clicking the X will minimize the app. I
wasn't saying clicking the X would terminiate the app, sorry for the
misunderstanding. What I was saying is calling Close() from inside the code
will terminate the application. He could add a close button, menu item, or
catch any message he wants and call the Form.Close() method.

jim

"Munsifali Rashid" <mun.news@#RemoveToReply#cordlessmouse.co.uk> wrote in
message news:uC**************@tk2msftngp13.phx.gbl...
Are you testing this on the emulator or the Pocket PC device itself? As far as I remember, clicking the X on the emulator would cause the process to
exit, regardless of the what the MinimizeBox property was set to. However, on the handheld device, if this property was set to true, clicking on the X would simply cause the application to minimise, rather than exit.
Re-launching the application would simply restore its window and resume from where it was minimised.

Regards,

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"Jim H" <no****@jimsaccount.com> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
No it doesn't. The MinimizeBox property can be set to true. I just

tested
this and calling Close() from inside MyForm1 results in the process

exiting
cleanly. I don't set the MinimizeBox property to false in any of my
applications.

jim


Nov 15 '05 #8
Not to worry, it's all a learning experience :-)

Regards,

Mun

--
Munsifali Rashid
http://www.munsplace.com/


"Jim H" <no****@jimsaccount.com> wrote in message
news:Oo**************@TK2MSFTNGP11.phx.gbl...
I tested on both. You are correct, clicking the X will minimize the app. I wasn't saying clicking the X would terminiate the app, sorry for the
misunderstanding. What I was saying is calling Close() from inside the code will terminate the application. He could add a close button, menu item, or catch any message he wants and call the Form.Close() method.

jim

Nov 15 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Guinness Mann | last post by:
Pardon me if this is not the optimum newsgroup for this post, but it's the only .NET newsgroup I read and I'm certain someone here can help me. I have a C# program that checks for an error...
3
by: Komandur Kannan | last post by:
We have application developed in .net platform (vb.net) running on a Symbol MC9000G handhelds. These handhelds authenticate to our 2000 domain using Kerberos. There is a mid-tier code running as...
20
by: Mark | last post by:
I am using gnu g++ version 3.3.2, trying a simple test to read in and then write out a large (100,000 line) text file ########################################## CSTDIO VERSION TO READ/WRITE...
0
by: Jérôme MATHIEU | last post by:
Hello everybody, Is it possible to develop smartdevice app on .net 4.2 with vs2005 ? thank you very much have a nice day Jérôme
3
by: Xee | last post by:
When making a Smartdevice program and putting in a transparant picture, the part that "used to be transparant" is white. Is there something I can do about this?
0
by: JereeshVijayan | last post by:
hi, anyone can tell me from where i will get an example source code of C#.net, how to connect a 'SmartDevice' to a RAS through 'Dial Up Connection' Thanks Jereesh
2
by: jsimons | last post by:
If the user accidentally clicks the X close button I'm using the following code in the form unload event to stop them from accidentally quitting Access. Private Sub Form_Unload(Cancel As...
21
by: J de Boyne Pollard | last post by:
HSfgets() is standard in C file I/O. HS> HSThe only issue you need to pay attention too, is RAW HS(binary) vs COOK mode. It will relate the EOL (end HSof line) definitions of MS-DOS (<CRL><LR>)...
0
by: Bob Develd | last post by:
I wrote an application Smart Device for Pocket PC with Windows Mobile 5.0. In VStudio, how to recompile quickly this application for Pocket PC with Windows Mobile 6.0 without transferring all faile...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.