protected override void OnHandleDestroyed(EventArgs e) { if (_NativeWimdow != null) { _NativeWimdow.Dispose(); _NativeWimdow = null; } base.OnHandleDestroyed(e); }
protected override void OnCreateControl() { base.OnCreateControl(); if (DropDownStyle != ComboBoxStyle.DropDownList && !DesignMode) { if (_NativeWimdow == null) { _NativeWimdow = new EditorNativeWimdow(this); } } }