using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Show(); } } public class Form2 : Form { public Form2() { this.Opacity = 0.0; this.Shown += new EventHandler(Form2_Shown); } Timer t = new Timer(); void Form2_Shown(object sender, EventArgs e) { t.Tick += new EventHandler(t_Tick); t.Interval = 100; t.Enabled = true; } void t_Tick(object sender, EventArgs e) { t.Enabled = false; this.Opacity = 1.0; } } }