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.
It seems to run this code but doesnt use the values when it displays the control.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; //
public void LoadChildControl()
{
moTreeViewHost.Width = DropDownWidth;
moTreeViewHost.Height = DropDownHeight;
((Control)oChildControl).Width = DropDownWidth;
cmbDropDown.Show(this, 0, this.Height);
}





Reply With Quote