/// <summary> /// The native window's original handle is released /// and the handle of the TextBox is assigned to it. /// </summary> public ComboEditWindow(BrowserComboBox owner) { this.owner = owner; NativeShellAPI.COMBOBOXINFO info = new NativeShellAPI.COMBOBOXINFO(); info.cbSize = Marshal.SizeOf(typeof(NativeShellAPI.COMBOBOXINFO)); NativeShellAPI.GetComboBoxInfo(owner.ComboBox.Handle, ref info); if (!this.Handle.Equals(IntPtr.Zero)) { this.ReleaseHandle(); } this.AssignHandle(info.hwndEdit); }