Create a new menu item in SQL Server Management Studio

江枫思渺然 提交于 2019-12-07 01:33:14

问题


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?


回答1:


From MSDN.

Adding a New Item to the Menu To add a new item to the menu

  1. On the Tools menu, click Options.
  2. In the Customize dialog box, on the Commands tab, click New Menu.
  3. On the Commands box, drag New Menu to the menu bar and drop it where you want the new menu to appear.
  4. On the menu, right-click New Menu, and in the Name box, type a name for the new menu.
  5. 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.
  6. In the Customize dialog box, click Close.


来源:https://stackoverflow.com/questions/10460305/create-a-new-menu-item-in-sql-server-management-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!