Form Trick

By | 2002-06-01

When your user closes your form, it shrinks and slowly drifts off the screen in the direction of YOUR choice! (o: A simple code! (o:

Original Author: SeeD

Assumptions

OK, do this:
1) Start up a new project in your Vb.
2) Add a timer – set it’s interval to 2
3) Add the code below to the timer. (o:

Code

'Add this to the timers code area.
Form1.Width = Form1.Width - 30
Form1.Height = Form1.Height - 30
Form1.Top = Form1.Top + 50
Form1.Left = Form1.Left + 5
'Feel free to alter this code, this is merely an example to be customized. (o:

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.