G
Guest
I use very often custom controls in panels.
But I always have performance issues (on all computer, not only on mine).
I always have this kind of code :
panel1.controls.clear
While ...
r = New uMyControl(param1,param2)
Panel1.Controls.Add(r)
r.Dock = DockStyle.Top
Panel1.Controls.SetChildIndex(r, 0)
End While
I tried to build a list of controls first and then use the control.addRange
method. But it seems that the increase of performance is just 5-10%. It is
still too slow, especially when the the size of controls is more than 20.
What is the best trick to improve that ?
Thanks
But I always have performance issues (on all computer, not only on mine).
I always have this kind of code :
panel1.controls.clear
While ...
r = New uMyControl(param1,param2)
Panel1.Controls.Add(r)
r.Dock = DockStyle.Top
Panel1.Controls.SetChildIndex(r, 0)
End While
I tried to build a list of controls first and then use the control.addRange
method. But it seems that the increase of performance is just 5-10%. It is
still too slow, especially when the the size of controls is more than 20.
What is the best trick to improve that ?
Thanks