Closing all Active forms in MDI


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Closing all Active forms in MDI

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Closing all Active forms in MDI

    [Originally posted by Willy]

    How should I go about closing all my active forms in my MDIform? Please advise.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Closing all Active forms in MDI

    [Originally posted by Nick Dawkes]

    It goes something like this:
    Dim fForm As Form
    For Each fForm In Forms
    If fForm.MDIChild Then Unload fForm
    Next fForm
    cheers
    Nick

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Closing all Active forms in MDI

    [Originally posted by Willy]

    I tried pasting this code in my MDIform when the user had logged off but it didn't work. It says that fFrom.MDIChild is an invalid property. What should I do?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center