Home > Net >  C # controls serialization issues
C # controls serialization issues

Time:04-07

In a form, do have a child window TableLayoutPanel

Custom several classes, and then the dynamic load control includes all kinds of information, have a label, combox, a total of 120 controls on TLP,

Then, according to the child window to 6 seconds,

Is there any way to speed up?

I use a stopwatch to see the time, I generated a TLP took 2.5 seconds,

More than three seconds behind then son is loaded with interface, I have seen in child interface Load inside for more than 6 seconds,

How can accelerate the speed?

Originally wanted to use serialization, but the control does not support serialization, there are other ways to speed up,

And so on more than 6 seconds too Dan ache, can, of course, be a delegate, but still very low, please expert guidance

CodePudding user response:

Practice has proved that without this control TableLayoutPanel

CodePudding user response:

Just load control should soon, is to control load the information displayed is more time-consuming

CodePudding user response:

The
refer to the original poster tucker heather's reply:
doing a form, have a child window TableLayoutPanel

Custom several classes, and then the dynamic load control includes all kinds of information, have a label, combox, a total of 120 controls on TLP,

Then, according to the child window to 6 seconds,

Is there any way to speed up?

I use a stopwatch to see the time, I generated a TLP took 2.5 seconds,

More than three seconds behind then son is loaded with interface, I have seen in child interface Load inside for more than 6 seconds,

How can accelerate the speed?

Originally wanted to use serialization, but the control does not support serialization, there are other ways to speed up,

And so on more than 6 seconds too Dan ache, can certainly be a delegate, but still very low, and


DevExpress aren't layoutControl incense, the components of Microsoft, is limited to the performance,

CodePudding user response:

Load control should not be so long time, even if you serialize the so is not to be loaded,

CodePudding user response:

refer to the second floor Bridge_go response:
just load control should soon, is to control load time display information more

I gave 120 control class first, then make control, 2 kinds, label and combobox, have good new, and have add to complete in the TablelayoutPanel, this as long as more than 2 seconds,
And then to the form2 show, I added in the show, according to the time it takes 4 seconds, why is this so long
  •  Tags:  
  • C#
  • Related