Closing Form

ZooTV
07-16-2004, 10:04 AM
I know how to create a New form, pass parameters, and show it, but how about closing it? What is the best way to do it?

Iceplug
07-16-2004, 01:50 PM
To close a form?

Me.Close()
closes the form you are coding in.

F.Close()
closes a form that you have a reference to (where F is the name of the form variable you have declared)

ZooTV
07-16-2004, 02:32 PM
Thanks Iceplug.

I was wondering if I had to use Dispose or anything else, but that seems to work fine. :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum