NComboBox Display issue


Author
Message
Angel Chorbadzhiev
Angel Chorbadzhiev
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
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.


Miles Thornton
Miles Thornton
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
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 (177 views, 152.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search