For Each loForm In MyMDI.MdiChildren If loForm.GetType() Is FormType llReturn = True If loForm.WindowState = FormWindowState.Minimized Then loForm.WindowState = FormWindowState.Normal End If End If Next
Return llReturnEnd Function
You would call it like this: