Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / August 2004

Tip: Looking for answers? Try searching our database.

Custom Form Close Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
- 19 Aug 2004 00:32 GMT
Hi,
  I display the email information in one of our custom forms.  The problem
is, when the user tries to close the form, it is asking "do you want to
save" with yes, no and cancel options.

I do not want this save message to appear and the form should close without
asking anything.  I tried to write a function item_close() in the form and
close the item with return value of 1 but still I get that message.

can anybody tell me what can I do to prevent the users from getting that
message?

Thanks in advance.
Sue Mosher [MVP-Outlook] - 19 Aug 2004 00:56 GMT
You can't prevent the user from getting that message if the item has changes
and has not been saved.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi,
>   I display the email information in one of our custom forms.  The problem
[quoted text clipped - 10 lines]
>
> Thanks in advance.
An Dong - 19 Aug 2004 16:00 GMT
Hello,
in general, if you don't want to be asked for confirmation, try Item.Close(0)
AnDong

> You can't prevent the user from getting that message if the item has changes
> and has not been saved.
[quoted text clipped - 13 lines]
> >
> > Thanks in advance.
Sue Mosher [MVP-Outlook] - 19 Aug 2004 16:24 GMT
That won't work if the user clicks the CLose button. Try it with MsgBox
statements in both Item_CLose and Item_Write to see the event order.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hello,
> in general, if you don't want to be asked for confirmation, try
[quoted text clipped - 22 lines]
>> >
>> > Thanks in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.