A WinForm That Fades In and Out Upon Load and Exit

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
This small project provides a WinForm that fades in for the form_load event and fades out for the click event of the exit button. Create a new windows application project, and on your form, create one button and two timers. Name the button btnexit and name the timers, tmr_in and tmr_out, then simply copy the provided class into the form1.vb source.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: