We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to customize the item height based on number of line in EditableListBox?

In EditableList, it is possible to specify its item height with respect to its Text length, by handling its events named MeasureItem and DrawItem.

 

MeasureItem

 

This event helps to customize the Item height.

 

DrawItem

 

This event helps to customize the Item content appearance.

 

Following code example demonstrates the same.

C#

 

VB

                              

           C:\Users\keerthana.jegannatha\Pictures\Camera Roll\ItemHeight.png

Figure 1. Item Height based on Lines of Items in EditableList with Image.

Sample Links:

 

C#: Determine Item Height Based on number of Item Lines C#

VB: Determine Item Height Based on number of Item Lines VB

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6523 03/14/2016 03/14/2016 Windows Forms EditableList
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.