//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="cb">The owner of the drop-down</param> internal UserControlSimple(UserControlComboBox cb) { owner = cb; // Set the value of the double-buffering style bits to true this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw, true); this.UpdateStyles(); this.Width = owner.Width; this.BackColor = owner.DropDownBackColor; this.TabStop = false; }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="cb">The owner of the drop-down</param> internal UserControlDropDown(UserControlComboBox cb) { owner = cb; // Set the value of the double-buffering style bits to true this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw, true); this.UpdateStyles(); this.ClientSize = new System.Drawing.Size(142, 122); this.ControlBox = false; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "UserControlDropDown"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.TopMost = true; this.BackColor = owner.DropDownBackColor; }