How to load windows form on custom folder click using outlook add-in - outlook-addin

I have added a solution module having a custom folder in MS outlook 2010. I need to open a windows form on folder click event. The form should display in main central region of outlook window (I think it is called an inspector).
How can I achieve this?

You can monitor the Explorer.FolderSwitch event and display your form if the desired folder is current.

Related

Outlook project distribution with custom tab and button to trigger userform

I have created Userform in Outlook Called "Task Manager", which attach the current emails to the task selected from the list.
As excel has .xlsm and word has .docm to add custom tabs, button and save macro to share it with your colleagues. but I realized that outlook is independant, there is no file related to outlook. So there must be a way to add custom tabs and button to trigger the UI at runtime.
we need to do it other way around? I am looking for a method to share .exe file to another user so that they can install the .fxm files and have a custom tab. already searched internet could not find feasible solution, I don't know the right way to start?

Purge an IMAP folder in Outlook 2016 using VBA

In Outlook 2016 I have connected an IMAP folder. Outlook is configured to mark items as deleted in IMAP folders. This is necessary because I want to process those items, that are marked for deletion seperately. After my macro is completed, that IMAP folder should be purged automatically.
In Outlook there is the ribbon "Folder" with the group "purge". In there is the menu "delete" with an menu item to purge the current folder. I can't find a way to execute the function from a VBA macro.
For Outlook 2010 there is this solution:
http://www.vboffice.net/en/developers/purge-deleted-imap-messages/
In Outlook 2016, the findControl method does not find the required control.
Is there any way to purge that folder?
Best solution would be some kind of API function.
Second best would be to simulate a click event on the control of the ribbon. "CommandBars" seems to contain some sort of context menus but not the ribbon controls.
Is it possible to define custom commandbars with standard controls in it? The control id seams to be still "12771".
I very briefly looked into the UI Automation toolkit but have found no good example of how to access the ribbon of a specific application.
Alternatively: can I get access to controls of the quick access toolbar? Adding the correct purge folder control to the quick access toolbar would rely on the user to click on that button at the right moment.
For buttons you can add to a ribbon or the QAT, the idMso can be seen at the end of the text when hovering over the command.
Sub PurgeFolder_Button_idMso()
' For buttons you can add to a ribbon or the QAT,
' the idMso can be seen at the end of the text when hovering over the command.
ActiveExplorer.CommandBars.ExecuteMso ("PurgeFolder")
End Sub

Outlook Addin (AppointmentOrganizerCommandSurface): First time user loads addin saves the open appointment item to calendar

I have written an Outlook web addin that uses a manifest which includes an AppointmentOrganizerCommandSurface extension point. So the addin shows in the ribbon for a new meeting/appointment item created by the user in desktop Outlook 2016.
The initial page loaded in the Outlook pane for the addin simply uses a javascript function (Office.onReady) to pull the email address of the user with loadItemProps(userProfile).
It seems that when a user runs the addin for the very first time the open appointment item is automatically saved to the calendar as soon as the manifest is loaded by Outlook. This does not happen after the first time use of the addin.
There is nothing else happening on the initial page other than the Office.onReady. So it looks like Outlook is doing this when the AppointmentOrganizerCommandSurface is initiated the first time.
Is there a way to prevent this from happening?

Reload Office content Add-In from powerpoint #24

I have office web add-in added in my PowerPoint slides (multiple instances of add-in). Need some settings that will be common across all add-in instances. for that tried to use VSTO Add-In and save those in settings file of it.
Now the issue is how i can pass those settings to each content add-in instances so i can read those in each add-in instance.
OR
Is there a way where i can get handle of content add-in's context menu buttons 'Reload', so after any change from VSTO Add-In, can i just call 'Reload'. I can move settings in DB if needed.
Content Add-In Reload option
Appreciate any insights on this.
You need to store these externally. Settings are scoped to a single Add-in (technically to a single manifest id). From the documentation:
The settings created by using the methods of the Settings object are saved per add-in and per document. That is, they are available only to the add-in that created them, and only from the document in which they are saved.

Displaying information bar in outlook application

I have developed an outlook plugin using atl. I want to show some information to user using yellow bar which comes just below ribbon of application.
I have found one class for that in interop, but dont know how to use it. Its olkinfobar
If i create its instance than how to i bound it to application.
https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.olkinfobarclass.aspx
You need to create a custom form to use this control.
Instead, you need to develop an Outlook form region or create an adjacent window. See Adjacent Windows In Outlook for more information about subclassing Outlook windows using Windows API functions.