VB 2010 | Make Form Slide Effect
Posted: Sun Jan 10, 2010 3:20 pm
Hello! And welcome to this tutorial on creating a slide effect, it is a smooth effect that makes your form bigger! Or smaller!
Form 1:
You will need somthing to activate the slide effect!
Do Until:
The 'Do Until' expression, does the event you want, until it reaches the input value, then it will stop.
my input value is '100'
Me.Height + Me.Height + 1:
This means that, the form height, will = the form height, but it will plus 1, until it reaches the next event expression.
Loop:
Looping it means. If the height of the form doesn't = 100, it will +1 untill it does = 100, then it will loop.
Open the click event (Expression Event) (Code), then input this code:
Thanks for watching this tutorial!
Contact Me:
YouTube - iFunnyTutorials
E-Mail - iFunnyTutorials@Live.co.uk
Finished Project:
http://i982.photobucket.com/albums/ae30 ... titled.png
Form 1:
You will need somthing to activate the slide effect!
Do Until:
The 'Do Until' expression, does the event you want, until it reaches the input value, then it will stop.
my input value is '100'
Me.Height + Me.Height + 1:
This means that, the form height, will = the form height, but it will plus 1, until it reaches the next event expression.
Loop:
Looping it means. If the height of the form doesn't = 100, it will +1 untill it does = 100, then it will loop.
Open the click event (Expression Event) (Code), then input this code:
Code: Select all
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Do Until Me.Height = 100
Me.Height = Me.Height + 1
Loop
End Sub
End Class
Thanks for watching this tutorial!
Contact Me:
YouTube - iFunnyTutorials
E-Mail - iFunnyTutorials@Live.co.uk
Finished Project:
http://i982.photobucket.com/albums/ae30 ... titled.png