Export (0) Print
Expand All

Using Windows Forms Controls on Excel Worksheets

You can add Windows Forms controls to your Microsoft Office Excel workbooks in the same manner that you add controls to Windows Forms. For general information about working with controls on documents, see Windows Forms Controls on Office Documents Overview.

Applies to: The information in this topic applies to document-level projects and application-level projects for Excel 2013 and Excel 2010. For more information, see Features Available by Office Application and Project Type.

There are a few considerations that are specific to Excel.

You can set the control to be resized automatically when the size of the parent cell is changed. For more information, see How to: Resize Controls Within Worksheet Cells.

You can add components that you want to share among all worksheets, such as a DataSet, to the Workbook Designer instead of to the worksheets. The component will appear on the component tray.

When you select a control in Excel, you will see =EMBED("WinForms.Control.Host","") in the Formula Bar. This text is necessary and should not be deleted.

Show:
© 2014 Microsoft