Click or drag to resize


Shows how to use the Tool component to add a small tool button to Textboxes, Cells, Comboboxes, etc.

Create a TextBox control and set up the Tools properties

  1. Drop a TextBox control from the Toolbox onto a window or page

  2. Open the TextBox properties, go to the Tools property collection and set up location, tooltip text, icon etc.

    tutorial-tools 1
  3. Please note that the designer directly shows the Tool Component icon

    tutorial-tools 2
  4. You can add your custom code in the ToolClick event handler

    tutorial-tools 3
  5. You can theme your Tools appearances depending on their ToolContainer see: States

The Tool component is also available for a lot more controls like columns in a DataGridView, ComboBoxes etc.