What is e.Control in outlook itemEvents class?

Add-in Express™ Support Service
That's what is more important than anything else

What is e.Control in outlook itemEvents class?
Byung Kun Kim

Posts: 48
Joined: 2011-12-15
In OutlookItemEvents class Almost every e.Control returns null.

Public Overrides Sub ProcessWrite(ByVal e As AddinExpress.MSO.ADXCancelEventArgs)
Public Overrides Sub ProcessReply(ByVal Response As Object, ByVal e As AddinExpress.MSO.ADXCancelEventArgs)

Visual Studio's object explorer says, "Returns an instance of the Office control.".

Public ReadOnly Property Control As Object
Returns an instance of the Office control.

What is this for?
Posted 11 Nov, 2016 03:10:45 Top
Andrei Smolin

Add-in Express team

Posts: 17500
Joined: 2006-05-11
You can only use this property in certain scenarios related to handling command bar controls. In any other situation, this property is null (Nothing in VB.NET).

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Nov, 2016 03:50:41 Top