Exemple #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);
        }
		/// <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);
		}