Adding Host Controls to the Worksheet

You can add Excel host controls to the worksheet in a number of ways at design time. You can always add a host control to the worksheet through Excel's menus, in the same way you add a native object to a worksheet. For example, when you have Excel open inside Visual Studio and you add a chart to the worksheet using Excel's menus, VSTO automatically creates the chart as a host control. You can also add some of the host controls by dragging the control from the Toolbox or Data

Sources window onto the worksheet. Additionally, host controls can be added to the worksheet programmatically at run time.

0 0

Post a comment