Exemplo n.º 1
0
        /// <summary>
        /// The native window's original handle is released
        /// and the handle of the TextBox is assigned to it.
        /// </summary>
        public void AssignTextBoxHandle(ImageComboBox owner)
        {
            Owner          = owner;
            cbxinfo.cbSize = Marshal.SizeOf(cbxinfo);
            GetComboBoxInfo(Owner.Handle, ref cbxinfo);

            if (!this.Handle.Equals(IntPtr.Zero))
            {
                this.ReleaseHandle();
            }
            this.AssignHandle(cbxinfo.hwndEdit);
        }
Exemplo n.º 2
0
 public ImageComboBoxItemCollection(ImageComboBox owner)
 {
     this.owner = owner;
 }