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 7887145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:30:11+00:00 2026-06-03T05:30:11+00:00

Currently I am aimed to create Outlook Add-in, which would create specific archive folder.

  • 0

Currently I am aimed to create Outlook Add-in, which would create specific archive folder. The difference from the regular one is that mine should provide me full control over item’s content during its move-in or move-out.

Shortly speaking, I should be able to scan items’s binary content before its really moved into my folder or deleted from my folder. Im going to copy some of that items to network place.

Please advice my right documentation or samples for my situation

  • 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-03T05:30:12+00:00Added an answer on June 3, 2026 at 5:30 am

    Assuming that you’re using Visual Studio 2010, you’ll most likely start by creating a Visual Studio Tools for Office (VSTO) project to create your add-in. Look here for details on VSTO and Visual Studio.

    Once you have that up and running, you will have a source file called ThisAddIn.cs that contains the “main entry point” into your add-in. From there, you can hook into events that Outlook will raise when certain events take place. You will most likely be interested in the following events:

    • BeforeFolderSwitch
    • FolderSwitch

    Your code will look something like this:

    private void ThisAddIn_Startup(object sender, EventArgs e)
    {
        var explorer = this.Application.ActiveExplorer();
        explorer.BeforeFolderSwitch += new ExplorerEvents_10_BeforeFolderSwitchEventHandler(explorer_BeforeFolderSwitch);
        explorer.FolderSwitch += new ExplorerEvents_10_FolderSwitchEventHandler(explorer_FolderSwitch);
    }
    
    /// <summary>
    /// Handler for Outlook's "BeforeFolderSwitch" event. This event fires before the explorer goes to
    /// a new folder, either as a result of user action or through program code.
    /// </summary>
    /// <param name="NewlySelectedFolderAsObject">
    /// The new folder to which navigation is taking place. If, for example, the user moves from "Inbox"
    /// to "MyMailFolder", the new current folder is a reference to the "MyMailFolder" folder.
    /// </param>
    /// <param name="Cancel">
    /// A Boolean describing whether or not the operation should be canceled.
    /// </param>
    void explorer_BeforeFolderSwitch(object NewlySelectedFolderAsObject, ref bool Cancel)
    {
        if (NewlySelectedFolderAsObject == null)
            return;
        var newlySelectedFolderAsMapiFolder = NewlySelectedFolderAsObject as MAPIFolder; 
    }
    
    void explorer_FolderSwitch()
    {
    }
    

    Your code should be placed in those event handlers to perform your work.

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

Sidebar

Related Questions

Currently, I'm developing an app that functionality heavily relies upon retrieved JSON data. Most
Currently, working with Denali RC0 and unable to add BI Time Intelligence to the
Currently, I'm developing an application for Android OS. I would like to know the
Currently my program generates random 8 character strings made from numbers. See below public
Currently I am debugging the signing of an Android app. And this would be
I have written a chunk of code that is aimed at reordering pages. <form
Currently, my MVC 3 app has a dependency on a static class that is
Currently I have the following Mapping in my Controller: @RequestMapping( value = /add.html, method
Currently, Tapping on the same Tab (in which user is working), The App moves
I mean I understand that these templates are aimed at designers and other less

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.