简体   繁体   English

DropDown中的ButtonClick在VS2010 / Outlook2010中不起作用

[英]ButtonClick in DropDown not working in VS2010/Outlook2010

I'm working on an add-in for Outlook 2010. I've created a new Ribbon Tab with a dropdown box. 我正在为Outlook 2010开发外接程序。我创建了带有下拉框的新功能区选项卡。 I'd like for the data in the dropdown to update when I click the dropdown button, but nothing is occurring. 我想在单击下拉按钮时更新下拉列表中的数据,但没有任何反应。 I've written the sample code below for testing purposes and nothing fires: 我已经为测试目的编写了以下示例代码,但没有发现任何问题:

        private void dropDown1_ButtonClick(object sender, RibbonControlEventArgs e)
    {
        MessageBox.Show("Dropdown CLick");
    }

This is as simple as it gets, but nothing is firing. 这很简单,但是没有任何结果。 Any ideas of what I might be doing wrong? 什么我可能是做错了任何想法? The only other code that exists in this ribbon right now is what loads the data. 现在,此功能区中存在的唯一其他代码是加载数据的代码。

Thank you 谢谢

From my understanding 从我的理解

private void dropDown1_Click(object sender, RibbonControlEventArgs e)
{
    MessageBox.Show("Dropdown CLick");
}

is what you wanna do. 是你想做的。 No where did I see ButtonClick as the proper tag. 没有,我在哪里看到ButtonClick是正确的标记。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM