Re: Multi-select Dropdown
This code should be able to be easily adapted to host a CheckedListBox in the drop-down:
http://www.codeguru.com/csharp/cshar...le.php/c15373/
Re: Multi-select Dropdown
Ok thanks I have that working for the CheckedlistBox, my only issue is that I have it databound and as such when there are 100 rows in the list just expands, any ideas where I can set it to only be 10 items high with a vertical scroll if neecessary.
Code:
//
this.chkOnsiteCustomer.CloseComboDelegate = null;
this.chkOnsiteCustomer.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.chkOnsiteCustomer.FormattingEnabled = true;
this.chkOnsiteCustomer.ItemHeight = 10;
this.chkOnsiteCustomer.Location = new System.Drawing.Point(159, 172);
this.chkOnsiteCustomer.Name = "chkOnsiteCustomer";
this.chkOnsiteCustomer.Size = new System.Drawing.Size(181, 60);
this.chkOnsiteCustomer.TabIndex = 0;
//
It seems to run this code but doesnt use the values when it displays the control.
Quote:
public void LoadChildControl()
{
moTreeViewHost.Width = DropDownWidth;
moTreeViewHost.Height = DropDownHeight;
((Control)oChildControl).Width = DropDownWidth;
cmbDropDown.Show(this, 0, this.Height);
}