Closing Child Form
public text v1 · immutablePrivate Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If Not e.CloseReason = CloseReason.WindowsShutDown Or Not e.CloseReason = CloseReason.MdiFormClosing Then e.Clancel = True End IfEnd Sub