Monday, May 18, 2009

Setting Opacity of WinForm

public static void mSetOpacity(Form form)
{
form.Opacity = 0.05;
for(double i=0.20; i < 1; i+=0.20)
{
form.Opacity = System.Math.Round(i, 2);

System.Threading.Thread.Sleep(5);

}
}

No comments:

Post a Comment

 
Locations of visitors to this page