I developing windows application in VB.net using c# for coding in vs2008. In my application i using MDI form inside that many child forms. Form1 is opened in my application and it minimizing when i opening Form2. My problem is when i maximize(restore) From1 , Form2 should minimize, how where should write code?.
i giving here my code for minimize window
Form charr = this.MdiChildren;
foreach (Form chform in charr)
chform.WindowState = FormWindowState.Minimized;