Results 1 to 4 of 4

Thread: Closing a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    Okay I may be the biggest idiot, but if the user clicks a button and I want to a new form to open and the current one to close completely how do i do this? I know i can hide/unhide them, but how do i close one completely?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Unload FormName

    i.e

    Unload Me 'Unload This Form.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    worked like a charm, thanks a lot

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    ...and after the Unload, you should Set MyForm = Nothing to completely free the form's resources.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width