Please remember that the code below comes with a Disclaimer In a VS package /// <summary> /// This function is the callback used to execute a command when the a menu item is clicked. /// See the Initialize method to see how the menu item is associated