Profile Picture

NComboBox Display issue

Posted By Miles Thornton 14 Years Ago
Author
Message
Miles Thornton
questionmark Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 17, Visits: 1

I am developing on a PC, my application must run on a series of laptops. The user interface looks fine on my PC @ 1680x1050; however, the laptops are using 1366x768 and 1280x800, etc...

The issue is that the NCombo Box Items are being truncated vertically (see attached). I have tried adjusting the ListProperties.ItemHeight; but that makes no apparent difference. What else should I try?

Thanks



Attachments
Drop-Down Display Error.jpg (157 views, 152.00 KB)
Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Hello Miles,

ItemHeight property sets the height of the items in the dropped down list.

When NComboBox is editable (as is shown in the image) the edit box hosts NComboBoxEdit control which base class is TextBox.

You can try to increase the height of this hosted control as follows:

Rectangle r = nComboBox1.EditControl.Bounds;

r.Height += someValue;

NComboBoxEdit edit = nComboBox1.EditControl as NComboBoxEdit;

if (edit != null)

{

    edit.Bounds = r;

}

Please, let me know if the problem persist.

Regards,

Angel.





Similar Topics


Reading This Topic