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.