★ Animated Form ★ Screenshots ★ SourceCode ★
Animated Form - Tutorial by Syphox
1. Set the size of your project to a very small value, I will take 38 because it's just the border without any space left.

2. Go to your Properties (or press F4) and search for FormBorderStyle. I recommend to set it to a "Fixed"-Value

3. Add a Timer to your project.

4. Right-Click your Form and click View Code.

4.1 You will see this.

5. Write this or copy & paste the code from below.

Code:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
End Sub

Code:
Timer1.Interval = 1 Timer1.Start()
7. Now we have to define what the timer does. Write the following or copy & paste the code from below.

Code:
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
End Sub

Code:
Me.Width = Me.Width + 3
If Me.Width = 600 Then
Timer1.Stop()
Me.Width = 600
End If
If Me.Width > 600 Then
Me.Width = 600
End If
Also, if the Width is bigger than 600 because anything, it will be resized to 600.
9. Now we are finished. Press F5 to debug your program and check it out! You can do the same with the Height and other variables.
Since this Tutorial is 100% hand-written please leave a Thanks if you like it!
The SourceCode can be found as a VisualBasic-Project below!
Virus Scans:
VirusTotalⓘ
Jottiⓘ
Download:


