N
nzpcmad
There have been a number of posts about techniques to do this. The two
main ones seem to be:
Display from the top down e.g.
//this.Controls.Add(this.buttonEnter);
buttonEnter.Parent = this;
and use fewer commands e.g.
//this.lblStatus.Location = new System.Drawing.Point(111, 218);
//this.lblStatus.Size = new System.Drawing.Size(118, 17);
this.lblStatus.Bounds = new System.Drawing.Rectangle(111, 218, 118,
7);
I have e.g. a basic form that has ten labels and then the value of
each label e.g.
"Ship to" J. Bloggs
and one check box. Nothing else, no tabs etc.
Using Environment.TickCount, I find that it takes around 1 second for
InitializeComponent to complete. This seems a really large number.
Compare this to populating the values which takes around 12
milliseconds.
I tried the techniques mentioned above but they don't seem to have
made any difference. I am using CE 4.1 and CF SP2. I have seen some
posts that suggest that these optimising techniques no longer work
with SP2?
I an trying to optimise my application but this kind of thing causes
real problems.
Any ideas or suggestions?
Thanks
main ones seem to be:
Display from the top down e.g.
//this.Controls.Add(this.buttonEnter);
buttonEnter.Parent = this;
and use fewer commands e.g.
//this.lblStatus.Location = new System.Drawing.Point(111, 218);
//this.lblStatus.Size = new System.Drawing.Size(118, 17);
this.lblStatus.Bounds = new System.Drawing.Rectangle(111, 218, 118,
7);
I have e.g. a basic form that has ten labels and then the value of
each label e.g.
"Ship to" J. Bloggs
and one check box. Nothing else, no tabs etc.
Using Environment.TickCount, I find that it takes around 1 second for
InitializeComponent to complete. This seems a really large number.
Compare this to populating the values which takes around 12
milliseconds.
I tried the techniques mentioned above but they don't seem to have
made any difference. I am using CE 4.1 and CF SP2. I have seen some
posts that suggest that these optimising techniques no longer work
with SP2?
I an trying to optimise my application but this kind of thing causes
real problems.
Any ideas or suggestions?
Thanks