Sometimes it can be helpful to control the Notes client if a user really wants to close it. To do this you can easily change the Queryclose event in the Bookmark.nsf database or you can change your own homepage on the Queryclose event (normally you should choose the Main page to do this). The script is very short.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
'Declaration Const MB_YESNO= 4 Const MB_ICONQUESTION = 32 Const MB_DEFBUTTON2 = 256 Const IDYES = 6 Const IDNO = 7 Sub Queryclose(Source As Notesuidocument, Continue As Variant) yesno = Messagebox ("Do you really want exit ?", MB_YESNO+MB_ICONQUESTION+ MB_DEFBUTTON2,"Close Notes") If yesno = IDYES Then continue = True Else continue = False End Sub
Do you have comments on this tip? Let us know.