Windows Forms Controls in VSTO - dummies

Windows Forms Controls in VSTO

By Bill Sempf, Peter Jausovec

Part of VSTO For Dummies Cheat Sheet

VSTO contains two namespaces that hold classes that contain Windows Forms controls, which you can use on the Word documents or Excel worksheets. All controls in the Microsoft.Office.Tools.Word.Controls and Microsoft.Office.Tools.Excel.Controls namespaces are derived from the Windows Forms base classes and function in the same way as regular Windows Forms controls.

You can find the following controls in the Microsoft.Office.Tools.Word.Controls namespace:

Button HScrollBar MonthCalendar RichTextBox
CheckBox Label NumericUpDown TextBox
CheckedListBox LinkLabel PictureBox TrackBar
ComboBox ListBox ProgressBar TreeView
DataGridView ListView PropertyGrid VScrollBar
DateTimePicker MaskedTextBox RadioButton WebBrowser