Gets the form that the container control is assigned to.
'Declaration
Public ReadOnly Property ParentForm As Form
public Form ParentForm {get;}
Property Value
The
System.Windows.Forms.Form that the container control is assigned to. This property will return null if the control is hosted inside of Internet Explorer or in another hosting context where there is no parent form.