Outlook 2010 插件将事件绑定到选项卡选择
我需要开发 Outlook 2010 加载项,并且我是 Visual Studio 和 C# 的新手。我正在使用 Visual Studio 2010,并使用内置 Outlook 2010 加载项模板创建了一个项目。我创建了一个新的功能区,我想在用户选择功能区选项卡时触发事件处理程序。这可能吗?如果是,那么我应该使用哪些对象和哪些事件?我想要一些关于做什么的指南,比如一系列说明,因为我真的不知道从哪里开始。
I need to develop an Outlook 2010 add-in and I am new to Visual Studio and C#. I am using Visual Studio 2010 and I've created a project using built-in Outlook 2010 add-in template. I've created a new ribbon and I would like to trigger an event handler when a user selects the ribbon tab. Is that possible? If yes, then what objects and what events should I use? I'd like to have some guidelines on what to do, like a sequence of instructions, 'cause I don't know where to start, really.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,首先我可以为您提供帮助,但我可以逐步建议一些包含有关执行此操作的教程的链接。
但要回答如果选择功能区选项卡是否可以触发事件,是的,这可以在 C# 中完成,通常是 .focus 事件。
首先,我们说代码可能是这样的,您的功能区名称可以说很好,
我希望您明白这些是您“可能”错过的链接:-)
http://msdn.microsoft.com/en -us/library/bb226712%28v=office.12%29.aspx
http://msdn.microsoft.com/en-us/magazine/cc163403.aspx
Well first of i can help you there but step by step i can suggest a few links that have tutorials on doing this.
But to answer if you can trigger an event if you select the ribbon tab, yes this can be done in C# its usually .focus event.
First of lets say the code might be like this your ribbon name lets say is
well i hope u get the idea these are the links that you 'might' :-) have missed
http://msdn.microsoft.com/en-us/library/bb226712%28v=office.12%29.aspx
http://msdn.microsoft.com/en-us/magazine/cc163403.aspx