Panel populating / Flickering

  • Thread starter Thread starter Jesper Denmark
  • Start date Start date
J

Jesper Denmark

Hi,

Accordingly to an item selected in a tree view I populate
a panel with different controls using panel.controls.add
(). This works almost fine - the only thing is that it
flickers a bit when the different controls are move
around on the panel due to docking properties. Is there a
way to populate the panel and then show it.

Would a way be to create a panel, populate it and then
attache it to its control.

best regards Jesper.
 
Jesper, yes, that would be a good way of doing it. You could also use
SuspendLayout() and ResumeLayout() to stop the layout logic of your control
while you are manipulating it. (This is what VS.Net uses when
autogenerating forms built using the Form designer)
 
Back
Top