flicker free drawing....
-
hi friends , I had a project to draw on a panel..I used draw line method and draw rectangle method to for drawing.It was on 2003.I converted it into 2005.But now it is showing high flickering.Is there any way to avoid flickering ? with warm regards Dyno :) :suss::cool:
-
hi friends , I had a project to draw on a panel..I used draw line method and draw rectangle method to for drawing.It was on 2003.I converted it into 2005.But now it is showing high flickering.Is there any way to avoid flickering ? with warm regards Dyno :) :suss::cool:
Well Denver, If you do a little searching yourself on CodeProject it will give you numerous solutions in a couple of seconds..... But since I'm already answering your request, here we go: have you tried the following: Make a new class that inherites from panel control. Override the OnPaintBackground and OnPaint methods. Setting the ControlStyles.DoubleBuffer property on the panel might do the trick as well. This site might help too: http://www.codeproject.com/KB/GDI-plus/flicker\_free.aspx Happy coding.
modified on Thursday, October 9, 2008 3:08 AM
-
Well Denver, If you do a little searching yourself on CodeProject it will give you numerous solutions in a couple of seconds..... But since I'm already answering your request, here we go: have you tried the following: Make a new class that inherites from panel control. Override the OnPaintBackground and OnPaint methods. Setting the ControlStyles.DoubleBuffer property on the panel might do the trick as well. This site might help too: http://www.codeproject.com/KB/GDI-plus/flicker\_free.aspx Happy coding.
modified on Thursday, October 9, 2008 3:08 AM
thanxx a ton my friend