.NET Programming
 

     
Fade In a windows Form

Keywords: windows form transparencey Opacity property Fade

 

 
 

        // Fade in a windows Form

        // Set Transparencey on a windows Form

        // Use the Opacity property

        // 1 = completely Visible

        // 0 = completely Invisible

        this.Opacity = 0;

        this.Visible = true;

        Double x = 0;

        while (x < 1)

        {

            x += .02;

            this.Opacity = x;

            Application.DoEvents();

            System.Threading.Thread.Sleep(10);

        }


 


 PTerryWave LLC      Return to Programming Listing
About