04-20-2011, 11:08 PM
(04-20-2011, 10:08 PM)Infinity Wrote: As KoBE has said, you should have had it as:
Code:'Form Close Effect
Private Sub Form1_Close(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
For FadingOutProcess = 0.9 To 0.1 Step -0.1
Me.Opacity = FadingOutProcess
Me.Refresh()
Threading.Thread.Sleep(70)
Next
End Sub
Sure, why not. At least the code ain't broken.
Whatever floats your boat.