/// <summary> /// Creates a new CustomWindowsFormsHost instance that allows hosting controls /// from the specified AppDomain. /// </summary> public CustomWindowsFormsHost(AppDomain childDomain) { Type type = typeof(HostedControlContainer); this.container = (HostedControlContainer)childDomain.CreateInstanceAndUnwrap(type.Assembly.FullName, type.FullName); Init(); }
/// <summary> /// Creates a new CustomWindowsFormsHost instance that allows hosting controls /// from the specified AppDomain. /// </summary> public CustomWindowsFormsHost(AppDomain childDomain) { var type = typeof(HostedControlContainer); this._container = (HostedControlContainer)childDomain.CreateInstanceAndUnwrap(type.Assembly.FullName, type.FullName); Init(); }
/// <summary> /// Creates a new CustomWindowsFormsHost instance. /// </summary> public CustomWindowsFormsHost() { this.container = new HostedControlContainer(); Init(); }