You can always close your current form with the Unload Visual Basic command. When that line is encountered your form will disappear. However, wouldn't it be more exciting if instead of just disappearing your form collapsed in towards the center of itself and then disappeared. The way we do this is by setting the forms width and height to a smaller amount over and over again. This can be done easily with a Do while loop. The important thing is to make sure you stop collapsing the form before it gets too small. You will get an error if you set the width or height to anything less than 0.
To try this out create a Visual Basic 6 project and a command button to your main form. Double click on the command and enter the following code in the click event handler for your button.
Once you have the code entered run your program and click the button. You should see your form leave with a little style
Note: The source for this was found at DreamVB which is no longer online.