InputPanel for WinForms | ComponentOne
C1.Win.8 Assembly / C1.Framework Namespace / XViewLight Class / OnHandleDestroyed Method
System.EventArgs that contains the event data.

In This Topic
    OnHandleDestroyed Method (XViewLight)
    In This Topic
    Remove hosted controls before disposing of the parent control.
    Syntax
    'Declaration
     
    Protected Overrides Sub OnHandleDestroyed( _
       ByVal e As EventArgs _
    ) 
    protected override void OnHandleDestroyed( 
       EventArgs e
    )

    Parameters

    e
    System.EventArgs that contains the event data.
    Remarks

    This allows the host element to remain valid even if their parent view is disposed. To dispose of the hosted control, call Dispose on the hosted control directly.

    Note: XViewLight determines that a System.Windows.Forms.Controlbelongs to an XViewLight.Element if the control's System.Windows.Forms.Control.Tag property contains a reference to a System.Windows.Forms.Control object.

    See Also