Code Example:
Private Sub CloseAll()
For Each aform As Form In Me.MdiChildren
aform.Close()
'aform.Dispose()
Next
End Sub
Download Source for free: Close All Active Form
Notice: This script is working find in Visual Studio 2012 or above
Private Sub CloseAll()
For Each aform As Form In Me.MdiChildren
aform.Close()
'aform.Dispose()
Next
End Sub
0 comments :
Post a Comment