开发者

Outlook 2010 addin bind event to tab selection

开发者 https://www.devze.com 2023-04-10 07:23 出处:网络
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 ne

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.


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

  Ribbon ribbon1=new ribbon();
 if(ribbon.focus()==true)
 {
   messagebox.show();
   }

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号