Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7855485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:24:09+00:00 2026-06-02T20:24:09+00:00

I am developing a little Outlook AddIn using C# and I cannot get this

  • 0

I am developing a little Outlook AddIn using C# and I cannot get this AddIn to properly cancel the ItemSend process.
I’m hereby thinking of the following scenario:
Consider this small AddIn:

    private void ThisAddIn_Startup(object sender, System.EventArgs e)
    {
        ((Outlook.ApplicationEvents_Event)this.Application).ItemSend += new ApplicationEvents_ItemSendEventHandler(ThisAddIn_ItemSend);
    }

    void ThisAddIn_ItemSend(object Item, ref bool Cancel)
    {
        System.Windows.Forms.MessageBox.Show("You can't save it, it's in the past!");
        Cancel = true;
        return;
    }

Now, when I try to change an existing appointment item, I change some values of it when opened in the appointment window, like location, etc. On hitting the “Send” button in the appointment window, the message in the textbox appears as expected. But the problem is that Outlook ignores this cancellation and already saves the changes. The only thing that happens is that the appointment window is not closed. But when simply closing the window without saving explicitly you can see that Outlook has already accepted your changes made to the appointment item.

Is this an intended behaviour? Can Outlook be stopped from saving changes even though the Cancel parameter has been changed to “true”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:24:10+00:00Added an answer on June 2, 2026 at 8:24 pm

    You could also use Application.Inspectors.NewInspector event and latch onto the AppointmentItem.Send event.

    According to the AppointmentItem.Send MSDN documentation – the expected behavior is that the send doesn’t occur when Cancel = true, the inspector window is left open and the changes are still saved – just not sent to attendees.

    If you want to cancel the Save – you need to latch onto the AppointmentItem.Write event to cancel saves prior to sending.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a fun little project using Foursquare API. In this project, I have
I am developing a little game (I'm using Play! framework ). In this game,
I know this is a noobish question, but I cannot get android-xmlrpc properly hooked
I am currently developing a little ecommerce application to help me get to grips
I am using VS 2008 WebDeveloper Express edition. And i'm developing a little aplication,
I'm developing a little script using ash shell (not bash). Now i have a
I'm developing a little game. I use the following code to detect the keys
I'm developing a little Twitter application on iOS 5. I'm using Twitter and Accounts
I'm developing and testing a little straight-forward client-server application using java (and scala). The
Please forgive the noob question. I've been developing this little app (with Unity) for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.