Skip to content

Control vs. Component

Components are .NET objects that can be added to a form that provide additional functionality or interactivity to the form. Controls are a subset of components that include user interface functionality as part of their design.
  • A component does not draw itself on the form, but a control draws itself on the form or on another control.
  • Examples:
    • A Timer object is an example of a component
    • A Button object is an example of a control
    • A GroupBox object is an example of a control that can contain other controls
  • All controls are also components, but not all components are controls.
  • In the ScriptoForm PowerShell script file, both controls and components are collectively instantiated in the Controls region.