User Controls
-
I need a solution for reducing or removing the flicker in the user controls (some controls I made) ... I'm seeking an effectient way; so please if anyone know how to do it, please tell me ... NOTE : I have already used the DoubleBuffer Style and still got some sort of flicker ... The controls are drawn from A to Z so it continue flickering and flickering :~ :~ :~ ... Thanks for your time ....
-
I need a solution for reducing or removing the flicker in the user controls (some controls I made) ... I'm seeking an effectient way; so please if anyone know how to do it, please tell me ... NOTE : I have already used the DoubleBuffer Style and still got some sort of flicker ... The controls are drawn from A to Z so it continue flickering and flickering :~ :~ :~ ... Thanks for your time ....
For the control's painting have you used
Graphics
fromPaintEventArgs
?. like for form Paining.....same as below code.private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Graphics g = e.Graphics;g.DrawString("Happy X-Mas", this.Font, Brushes.Blue, 0,0);
}
Note: If you DONOT use
Graphics
fromPaintEventArgs
, there will always reamin flickering, I had the similar problem once, I solved it using the above approach. -
For the control's painting have you used
Graphics
fromPaintEventArgs
?. like for form Paining.....same as below code.private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Graphics g = e.Graphics;g.DrawString("Happy X-Mas", this.Font, Brushes.Blue, 0,0);
}
Note: If you DONOT use
Graphics
fromPaintEventArgs
, there will always reamin flickering, I had the similar problem once, I solved it using the above approach.I'm using the graphics supplied as a parameter in the OnPaint ; What really makes the control filkering more and more, is its nature as a container (such as the panel), When the control is drawn without any children controls, it works very good but when adding the children controls, it starts flickering in an unacceptable fashion ... Thanks for helping but I stell need some more IDEAS ...