If you have ever wondered how to make FormSlideEffect in VB.NET, your on the right place.Open your Visual Basic 2008/201, and name your application as FormSlideEffect and hit Enter.Than set the form weight to 383, and width to 362.Nov add a one button from Toolbox and name it plus.Now add one group box and place it on your form.Ok it's code time, double click form 1 and paste the following code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
Button1.Visible = False
Button2.Visible = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer2.Enabled = True
Button2.Visible = False
Button1.Visible = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Width += 2
If Me.Width = 595 Then
Timer1.Enabled = False
End If
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Me.Width -= 2
If Me.Width = 383 Then
Timer2.Enabled = False
End If
End Sub
And this is how you can make your own FormSlideEffect;
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::>
this article is written by Amar Tufo, who wood like to specialy thanks to CodeProject and it's team;