Share via


Use Windows Forms Controls in Excel and Word

Windows Forms controls are objects that users can interact with to enter or manipulate data. You can now add Windows Forms controls to Microsoft Office Word 2003 documents, Microsoft Office Excel 2003 worksheets, and actions panes. You can add Windows Forms controls to your Word and Excel documents in the same manner that you add controls to Windows Forms. You can drag and drop Windows Forms controls from the Visual Studio Toolbox onto the document design surface and modify the control properties using the Properties window. You can also add and remove Windows Forms controls on your Word and Excel document at run time. Visual Studio Tools for Office provides helper methods for the common Windows Forms controls. These helper methods enable you to quickly add controls to your Office document and access the combined Windows Forms control functionality and Office-related functionality of these controls.

Drag a Windows Forms control such as a Button from the Toolbox into your Excel or Word application