Beim schliessen des Formulars wird der User gefragt, ob die Applikation geschlossen werden soll.
[Visual Basic] Private Sub frmMain_FormClosing( _
ByVal sender As Object, _
ByVal e As FormClosingEventArgs _
) Handles _
Me.FormClosing
[Visual Basic] Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If Me.ForceQuit Then Exit Sub
If txt.Show_MessageYesNo(1) <> MsgBoxResult.Yes Then e.Cancel = True
End Sub
Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition