Home > Domino Tips > Developer > QuickTips > Avoid closing Notes client
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

QUICKTIPS

Avoid closing Notes client


Corrado Maiolini
02.26.2004
Rating: -3.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Editor's Note: This feature will reportedly be included in ND7.

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.

Code

'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.


Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
QuickTips
View hidden fields on Lotus Notes/Domino forms
A bevy of Notes/Domino development tips
How to protect your Lotus Notes application design
Merging views
Stop an agent without shutting down the Amgr task
Collapsing outlines
How to make Notes view icons run code
Find all databases associated with a template
Verifying user's date setting and time zone on local PC
Load design for a single database

Lotus Notes 7
LotusScript agent automates selective mail file replication
Case-insensitive @Unique version combines fields on Lotus Notes forms
Mass-input form uses LotusScript to ease large-scale employee moves
Domino server setting and email policy tricks admins must know
Can Lotus Notes/Domino and Microsoft SharePoint play nice together?
IBM Lotus Notes versus Microsoft SharePoint: The rest of the story
Understanding a Lotus Notes Smart Upgrade rollout
Lotus Notes access error: 'database is not opened yet'
A guided tour of the Lotus Notes Domino blogosphere
Top 10 Lotus Notes Domino administration tips of 2007

Lotus Notes Domino Coding and Development
Tutorial: 30 LotusScript tips
A bevy of Notes/Domino development tips
A Formula language for Lotus Notes introduction -- 7 tips in 7 minutes
Top 10 Notes/Domino developer tips of 2006
Sending and logging faxes from Lotus Notes and Domino
Accessing documents in a Lotus Notes database
A smorgasbord of Notes/Domino development tips
Creating a Lotus Notes view column categorized by month
A project-tracking application for Lotus Notes Domino
What the new Office means for developers

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts