TWO PART GUIDE.
IF YOU DID NOT READ PART ONE TURN BACK TO LEARN MORE!
[VB.NET] Effects to your GUI! Part One
Ever wanted your programs to cool effects like all the "cool" programs? Well, you can now!
In this tutorial I will teach you how to make your program form (GUI) have cool effects.
It will include effects such as:
- Fading in when start of program
- Fading out when start of program
- Width enlargement ( Like at the press of a button Your GUI enlarges in width. )
- Height enlargement ( Basically the same except enlarges in height. )
Fading in:
Make a form with nothing inside.( Must I really screenie this? D: )
No. Now then Double click the form and enter in this code.
Code:
Dim Fade As Double
For Fade = 0.0 To 1.1 Step 0.1
Me.Opacity = Fade
Me.Refresh()
Threading.Thread.Sleep(100)
Next For = Just a starting point for Doubles
Fade() = The one in Blue = Fade from 0.0 to 1.1 gradient.
Me.Opacity = This forms opacity
= Fade = Fade from 0.0 to 1.1 gradient.
Me.Refresh() = Refresh the form
Threading.Thread.Sleep() = Don't worry about it.
Next = End
In total this means:
When this form is opened Fade in.
Fading Out:
Now you are still at your code, and do what this screenie shows.

Once you are at " Form1 Events " Go TO form Closing and enter in this code:
Code:
Dim Fade As Double
For Fade = 1.1 To 0.0 Step -0.1
Me.Opacity = Fade
Me.Refresh()
Threading.Thread.Sleep(100)
Next 1.1 To 0.0 = Make gradient 1.1 to 0.0
All of this code is:
When I open the program make it fade in, when I close make it fade out.
It should now look like this:
Guide made by:
Checkers/Check
If you want to use this guide on any site please do so just include my name.