hide application in Pocket PC

D

Daniel

Hallo,
I'd like to hide application in Pocket PC. My application is written in
C# 2.0 for WM 5.0. I have some questions:



1. When it starts in takes about 5-6 seconds. The whole application
consists of 5-6 forms so it's rather small. Is it possible to speed it
up? Or is it normal time for C# application?

2.
When I click on a close (x) application is hidden. And next time when
I click on exe files it starts very quickly.

When I close application from my code: Application.Exit(); application
is also closed, but later it takes 5-6 seconds to start.

My question is, how to hide application in the same way as it is done
when I click close (x) on a main form?
I just want my application put into memory and let in be there. when it
is nessery let it just show data.


Regards,
Daniel
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Daniel said:
Hallo,
I'd like to hide application in Pocket PC. My application is written in
C# 2.0 for WM 5.0. I have some questions:



1. When it starts in takes about 5-6 seconds. The whole application
consists of 5-6 forms so it's rather small. Is it possible to speed it
up? Or is it normal time for C# application?

It's possible to take a long time depending of how complex your main form
is, if you have a lot of controls it will take long.
There was a post a looooong time ago in the CF NG about how to change the
code generated by the designed to improve it, unfortunately you could not
use the designer after those changes.
2.
When I click on a close (x) application is hidden. And next time when
I click on exe files it starts very quickly.

It's not closed, it's just sent to the background, if you go to settings/
memory / running programs you will see it still running and can activate it
from there.
When I close application from my code: Application.Exit(); application
is also closed, but later it takes 5-6 seconds to start.

In this case you REALLY terminated the application :)
My question is, how to hide application in the same way as it is done
when I click close (x) on a main form?
I just want my application put into memory and let in be there. when it
is nessery let it just show data.

Do not call Application.Exit , it's that simple :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top