B
BillE
vb.net, visual studio 2005, windows forms
My application dynamically creates controls and adds them to a panel on a
form. This is done in the form load event.
I don't know if I would call it flickering, but parts of some controls get
displayed before others. They don't exactly flicker, they just appear in
pieces, instead of all at once. The controls include nested panels. I have
tried to avoid TableLayoutPanels because the performance is so terrible.
Before I add the controls, I suspend layout for the form and the panel. The
form is double-buffered.
I also tried setting the panel.visible = false and then true when the
contols were all created and added to the panel, but it doesn't help.
It looks funky while the page is loading, although it loads fast so its not
too bad.
I would like to fix this, and I would appreciate any suggestions.
Thanks
Bill
My application dynamically creates controls and adds them to a panel on a
form. This is done in the form load event.
I don't know if I would call it flickering, but parts of some controls get
displayed before others. They don't exactly flicker, they just appear in
pieces, instead of all at once. The controls include nested panels. I have
tried to avoid TableLayoutPanels because the performance is so terrible.
Before I add the controls, I suspend layout for the form and the panel. The
form is double-buffered.
I also tried setting the panel.visible = false and then true when the
contols were all created and added to the panel, but it doesn't help.
It looks funky while the page is loading, although it loads fast so its not
too bad.
I would like to fix this, and I would appreciate any suggestions.
Thanks
Bill