【问题标题】:What handles the event of changing the email you're looking at in outlook?什么可以处理更改您在 Outlook 中查看的电子邮件的事件?
【发布时间】:2013-12-31 00:56:10
【问题描述】:

我有一个自定义工具栏,我想根据一些关于在活动检查器中查看的当前电子邮件的标准来切换其可见性。每次用户更改他/她正在查看的电子邮件时,我都需要检查这一点。我对加载项编码非常陌生,但我想代码看起来像这样:

Sub EmailBeingViewed_Change(object, args) Handles 'Whatever-the-event-is-called
    Dim OpenEmail As Outlook.MailItem = CType(object, Outlook.MailItem)
    If OpenEmail.Body 'Contains thing I care about' _ 
    Then
        MyToolbar.Visible = True
    End If
End Sub

任何帮助将不胜感激。

【问题讨论】:

    标签: vb.net outlook-addin outlook-2007


    【解决方案1】:

    使用 Explorer.SelectionChange 事件。

    【讨论】:

      猜你喜欢
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多