如何检测何时单击 Outlook 单独的表单区域按钮

发布于 2024-11-25 08:09:33 字数 164 浏览 1 评论 0原文

我有一个单独的表单区域用于新邮件消息,我想知道如何在单击按钮显示表单数据时更新表单数据。

我当前正在加载表单数据,但这仅加载数据一次,并且不考虑用户在新邮件消息和单独的表单区域之间来回翻转。

我想做的是每当“收件人”电子邮件地址发生更改时更新表单数据,但似乎没有任何可用的事件挂钩。

I have a separate form region for new mail messages and I'd like to know how I can update the form data whenever the button is clicked to show it.

I am currently loading the form data on load but that only loads the data once and doesn't account for the user flipping back and forth between the new mail message and the separate form region.

What I'd like to do is to update the form data whenever the To email address changes but there doesn't seem to be any event hook available.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2024-12-02 08:09:33

我想通了。

在表单区域的构造函数中,监听当前检查器的 PageChange 事件:

Globals.ThisAddIn.Application.ActiveInspector().PageChange += new InspectorEvents_10_PageChangeEventHandler(CurrentInspector_PageChange);

void CurrentInspector_PageChange(ref string ActivePageName)
    {
        if (ActivePageName == "MySeparteForm")
        {
            //do work ...
        }
    }

I figured it out.

In the form region's constructor, listen to the current inspector's PageChange event:

Globals.ThisAddIn.Application.ActiveInspector().PageChange += new InspectorEvents_10_PageChangeEventHandler(CurrentInspector_PageChange);

void CurrentInspector_PageChange(ref string ActivePageName)
    {
        if (ActivePageName == "MySeparteForm")
        {
            //do work ...
        }
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文