Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Mumbai, India

    Unanswered: closing all child forms in vb


    I would like to know...what would be the code to close all the current child forms of an mdi form..

    its like a 'close All' button on the menu bar of teh should close all the current active child forms of the mdiform

  2. #2
    Join Date
    Mar 2004

    Re: closing all child forms in vb

    Cycle through the forms collection like so (check syntax)

    Dim frm as Form

    For each frm in MDIForm

    Unload frm


    Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

    Or try our Ask An Expert service to answer any of your questions!

Posting Permissions

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