在 SQL Server Management Studio 中创建一个新菜单项 [英] Create a new menu item in SQL Server Management Studio
本文介绍了在 SQL Server Management Studio 中创建一个新菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 SQL Server 2008 Management Studio 中创建新菜单项?
例如,当您右键单击数据库时,会出现一个选项列表(新建数据库、新建查询...).
是否可以在该列表中添加新项目并在单击该按钮时实现一些 C# 功能?
解决方案
来自 MSDN.
向菜单添加新项目向菜单中添加新项目
<块引用>- 在工具"菜单上,单击选项".
- 在自定义"对话框中的命令"选项卡上,单击新建菜单".
- 在命令"框中,将新建菜单"拖到菜单栏中,然后将其放到您希望新菜单出现的位置.
- 在菜单上,右键单击新建菜单",然后在名称"框中键入新菜单的名称.
- 在自定义"对话框中,选择文件"等类别,然后选择打开文件"等命令.将命令拖到新菜单中.当您指向新菜单时,菜单将展开.将命令拖放到展开的菜单上.
- 在自定义"对话框中,单击关闭".
Is it possible to create a new menu item in SQL Server 2008 Management Studio?
For example when you right-click the a database a list of options appears (New Database, New Query ... ).
Is it possible to add a new item in that list and implement some C# functionality when clicking that button?
解决方案
From MSDN.
Adding a New Item to the Menu To add a new item to the menu
- On the Tools menu, click Options.
- In the Customize dialog box, on the Commands tab, click New Menu.
- On the Commands box, drag New Menu to the menu bar and drop it where you want the new menu to appear.
- On the menu, right-click New Menu, and in the Name box, type a name for the new menu.
- In the Customize dialog box, select category such as File, and select a command such as Open File. Drag the command to the new menu. As you point to the new menu, the menu will expand. Drop the command onto the expanded menu.
- In the Customize dialog box, click Close.
这篇关于在 SQL Server Management Studio 中创建一个新菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文