For graphic drawing I use double buffering and when I draw graphics on form there is no flickering on form resize.
private void Form1_Paint(object sender, PaintEventArgs e)
{
myGDI.DrawImage(e.Graphics);
}
protected override void OnPaintBackground(PaintEventArgs pevent)
{
}
I tried the same thing with panel, but I don't know how to remove flickering on form resize event ...
private void panel1_Paint(object sender, PaintEventArgs e)
{
myGDI.DrawImage(e.Graphics);
}