speed up my application

  • Thread starter Thread starter Daniel
  • Start date Start date
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
 
Please help again....
Simon Hart napisal(a):
This depends on what your application is doing. It also depends on what
version of the CF you are using. Are you loading all the forms into memory on
start or do you have lots of controls on the initial main form?


This is because "X" "Smart Minimizes" the application. This is the same as
minimizing a desktop application.


Application.Exit() will terminate the application. If you want your
application to run indefinatly, don't call Application.Exit().

So how can I hide my application? I tried Form1.Hide() but when I want
to strat it again
it is minimalized.

I would like to hide it in the same way as it is done when I click (X)
on the right-top corner of a form.

So I have a button called btnExit

private void btnExit_Click(object sender, EventArgs e)
{
//and here I want to hide application in the same way
//as I click (x) on the right-top corner of a form
//Application.Exit();?
//this.Close();?
//this.Hide();?
}
 
Please help again....
Simon Hart napisal(a):
This depends on what your application is doing. It also depends on what
version of the CF you are using. Are you loading all the forms into memory on
start or do you have lots of controls on the initial main form?


This is because "X" "Smart Minimizes" the application. This is the same as
minimizing a desktop application.


Application.Exit() will terminate the application. If you want your
application to run indefinatly, don't call Application.Exit().

So how can I hide my application? I tried Form1.Hide() but when I want
to strat it again
it is minimalized.

I would like to hide it in the same way as it is done when I click (X)
on the right-top corner of a form.

So I have a button called btnExit

private void btnExit_Click(object sender, EventArgs e)
{
//and here I want to hide application in the same way
//as I click (x) on the right-top corner of a form
//Application.Exit();?
//this.Close();?
//this.Hide();?
}
 
Back
Top