When using the Opacity property, it must be remembered that its type is double, where 1.0 is full opacity, and 0.0 is full transparency.
private void fadeTimer_Tick(object sender, EventArgs e) { this.Opacity -= 0.01; if (this.Opacity <= 0) { this.Close(); } }
slyprid Sep 17 '08 at 15:20 2008-09-17 15:20
source share