making panel background color opaque causes slow painting of the controls in the panel.
I have .net 4 winforms app it uses tabs and on 2 of the tabs i load a background image. I overlay this with a panel with controls on it make them opaque by setting
panel1.BackColor = Color.FromArgb(200, Color.White);
If i comment out the line the panel and controls draw instantly, with the above line it takes a second to paint all the controls.
How can i have it paint faster but still be opaque?
Edit
I have added the following code but still have the same problem:
class DrawPanel : Panel
{
public DrawPanel()
{
this.DoubleBuffered = true;
}
}