·  Start ·  Programme ·  Codes ·  Tipps ·  ActiveX ·  Tutorials · 



Sie benötigen eine Form und einen Commandbutton.

Option Explicit

Private isUserEnd As Boolean

Private Sub Command1_Click()
' Einzige Möglichkeit zum Beenden !
    isUserEnd = True
    Unload Me
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    If isUserEnd Then
        Cancel = 0
    Else
        Cancel = 1
    End If
End Sub
Aktualisiert: 12.02.2008, 14:10 Uhr Copyright © 2001 - 2010 by ST-software Navigation zurück  |  Navigation vorwärts  |  Zum Seitenanfang     
Ihre IP: 38.107.191.83 ·  Seite erstellt in: 0.158 Sekunden ·  Dateigröße:  2264 Bytes