If MdiChildren.Count > 0 Then MessageBox.Show("Close All Form!", "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning) e.Cancel = True Else If MdiChildren.Count = 0 And MessageBox.Show("You Want To Close Your Program?", "Warning!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = Windows.Forms.DialogResult.No Then e.Cancel = True Else e.Cancel = False End If End If
Cancel
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)