View Single Post
  #6 (permalink)  
Old 04-10-2008, 04:16 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,
could any one tell me,how to avoid Flickering of an image during OnPaint Event.I used the following code to avoid flickering,even then it seems to happen.

this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);

Tell me the possible alternative.
Reply With Quote