Microsoft Office Tutorials and References
In Depth Information
Creating a Ribbon
6.
Next, select the User Control , and name it UserControl1.cs .
7. Open the UserControl1.cs file, and add the following
namespace references:
using System.Windows.Forms;
using Office = Microsoft.Office.Core;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
8. Open the Ribbon1.cs file, and add the following
namespace references:
using System.Windows.Forms;
using Office = Microsoft.Office.Core;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
9. Next, add the instance of the User Control and custom task pane to the
Ribbon code file:
// Usercontrol instance to access from the Ribbon
private UserControl1 PacktUserControl;
// Instance for Custom Task Pane to create
private Microsoft.Office.Tools.CustomTaskPane PacktCustomPane;
 
Search JabSto ::




Custom Search