c1ComboBox item height

Originally Posted 19 May 2017, 1:37 am EST

  • Originally Posted 19 May 2017, 1:37 am EST

    Hi
    What can be changed height c1ComboBox items?

  • Reply

    Please help about this problem.
  • Marked as Answer

    Reply

    Hello,

    In order to achieve your requirement, I would suggest you to use 'ItemMode' property of C1ComboBox. You can set ItemMode to "HtmlPattern" or "Html" to specify height of the items according to the given html. Please refer the attached application for the implementation.

    You can also refer the product sample "C1ComboBoxItemsModes" located at:
    "~\ComponentOne Samples\WinForms\C1Input\CS\ComboBoxItemModes".

    Thanks,
    Pragati
    2017/05/C1ComboBoxHeightIssue.zip
  • Reply

    Hi
    How can the size height c1ComboBox items comboBox like that?

  • Reply

    Hello,

    As per our understanding of your query, you wish to change the height of the items in C1Combobbox. If it is so, then as suggested before you may use the 'ItemMode[/i]' property and set it to '[i]HtmlPattern' and then set the 'HtmlPattern[i][/i]' property to something similar to below:
       c1ComboBox1.HtmlPattern = "<table><tr><td Height=\"50\">{Text}</td></tr></table>";

    Upon using the above approach, we could observe the change in height of the items. Please refer to the attached screen-shot "before_After.png".

    However, if this is not what you needed then we request you to please elaborate more on your requirement so that we may understand your query better and help you further.

    Also, I have once again attached the sample application for your reference.

    Regards,
    Ruchir Agarwal


    2017/06/C1ComboBoxHeightIssue_modified.zip
  • Reply

    Hi
    I want c1ComboBox items size height is smaller default comboBox Visual Studio

  • Reply

    Hello,

    Do you wish to decrease the default height of DropDown Items in C1Combobox? If it is so, then with C1Combobox there are no properties to decrease the DropDown Items height to a value less than the default value.
    However, you may use another ComponentOne control 'C1Combo' that has 'ItemHeight' property just like MS-Combobox and can be used to have DropDown Items height similar to MS-Combobox.

    I have attached a sample application consisting C1Combo, for your reference.

    Let us know if there are any discrepancies.

    Thanks & Regards,
    Ruchir Agarwal
    2017/06/C1ComboItemHeight.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels