如何通过共享插件将子菜单项添加到菜单项? [英] how to add submenu items to a menuitem?through shared addins?

查看:60
本文介绍了如何通过共享插件将子菜单项添加到菜单项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经在c#中创建了一个Shared插件.
这将在Ms-Word,Ms-Excel菜单栏中创建Mybutton(菜单项).

现在我想向此mybutton(menuitem)添加子菜单

这是我的mybutton_click代码..

Hi
I have created one Shared addin in c#.
this will create Mybutton(menu item) in Ms-Word,Ms-Excel menubar.

now i want to add submenuitems to this mybutton(menuitem)

this is my mybutton_click code..

private void MyButton_Click(CommandBarButton cmdBarbutton, ref bool cancel)
{
    System.Windows.Forms.MessageBox.Show("MyButton was Clicked", "MyCOMAddin");
}




问候,
Pawan.




Regards,
Pawan.

推荐答案

好吧,我在Google上搜索了开发ms office插件",并获得了超过67.5万次点击.也许答案就在那里.
Well, I googled "develop ms office addins" and got over 675,000 hits. Maybe the answer is there.


这篇关于如何通过共享插件将子菜单项添加到菜单项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆