VB 2010 | Make Form Slide Effect

Use this board to post your code snippets - tips and tricks
1 post Page 1 of 1
Contributors
User avatar
iFunnyTutorials
Just Registered
Just Registered
Posts: 4
Joined: Sat Jan 09, 2010 5:56 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:
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
1 post Page 1 of 1
Return to “Quick Snips”