This example displays a dialog box asking to confirm the loading of a settings file. If the user clicks No, the opening of the new settings file is cancelled and the settings file containing this event procedure remains open.
Private Sub Session_BeforeLoadSettings(SettingsFileName As String, SettingsType As Long, Continue As Boolean)
If MsgBox("Load " & SettingsFileName, vbYesNo) = vbNo Then
Continue = False
End If
End Sub