Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
849
UltraPanel update causes flickering
posted

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