Hello,
I have an UltraPanel containing several "top-docked" labels and a button. When I click on the button, I want to add a label at the bottom of the labels and right above the button. Here is the code of the Click event-handler :
UltraLabel l = new UltraLabel(); l.BackColor = Color.Red; l.Dock = DockStyle.Top; this.ultraPanel1.ClientArea.Controls.Add(l); l.BringToFront(); button1.BringToFront();
This causes the UltraPanel to flicker (I can see the new label at the top of the panel before it is "sent" down the list). I also tried calling BeginUpdate and EndUpdate, but it didn't change anything.
I don't have any flickering if I use a standard Panel instead of an UltraPanel.
Am I doing something wrong or is there an issue with the UltraPanel? (I can provide a test application if needed)
Regards,
Damien
Did you figure out how to solve this ouside of switching to a regular panel? I'm having a similar issue where the BeginUpdate and EndUpdate don't do what the method descriptions say they should do.
No, I haven't found any solution yet... And upgrading to 2009 vol 2 didn't change anything.
Let me know if you find something!
I ended up using the SuspendLayout() and ResumeLayout() methods on the UltraPanel.ClientArea which eliminated all the wierd flickering I was seeing.
Thanks a lot! I tried these methods before, but on the UltraPanel and it didn't work out.... I just didn't think about using them on the ClientArea.