Close all active child forms in MDI container window in C#


There are many ways to close all the active child forms in MDI container form. Some are the listed below:

1:

2:


Advertisements
    • anonymous
    • April 20th, 2012

    Great, easy, and effective! Thank you!

    • vic_med
    • September 8th, 2012

    good, thanks

    • hamed
    • December 11th, 2012

    tnx

  1. not working…….plz help…..
    giving error enum expected,struct expected……
    i am using these code in toostripclick event..It’s actually an home button..when user clicks it,all active MDI childs should close….

    • Hi,

      Paste your code here.

    • AbdulHakim
    • April 23rd, 2013

    it works thanks alot

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: