try abc

try abc

  • 1.4k
  • 306
  • 488.1k

how to avoid flicker on Form Load??

Nov 16 2009 7:02 AM
Hello, I am working on one Windows Application where some of the Forms has a more than 50 controls.. when these forms shows it shows with flicker. and it seems very ugly. i used the Following code for form
 protected override CreateParams CreateParams 
{ 
get 
{ 
CreateParams cp = base.CreateParams; 
cp.ExStyle |= 0x02000000; 
return cp;
 }
 } 
it works fine as i wanted, in vista but it has a problem with list_view. first time it paints with black rectangle and then normally paints. when the application runs on XP, Problem is with Datagridview .. all the border form all Datagridview lost..and it hung the form. can anyone please know how to solve this??? i already tried Double buffered and Opacity trick but it didn't help much.

Answers (7)