Input for WinForms | ComponentOne
C1.Framework Namespace / ControlHostElement Class
Members

In This Topic
    ControlHostElement Class
    In This Topic
    Element that hosts a WinForms Control.
    Syntax
    'Declaration
     
    
    Public Class ControlHostElement 
       Inherits Element
       Implements IControlHostElement 
    public class ControlHostElement : Element, IControlHostElement  
    Remarks

    In principle, this class allows hosting any WinForms control. In practice, not all controls work well in this scenario. For example, some controls cannot be freely resized, so the element should account for that.

    ** Important Note: to allow hosting generic controls, this class stores a reference to itself in the contained control's Tag property. That means hosted controls cannot use their Tag property for anything else.

    Inheritance Hierarchy

    System.Object
       C1.Framework.Element
          C1.Framework.ControlHostElement
             C1.Framework.TextBoxElement

    See Also