I need to change the vertical space for CheckedListBox
items so they fit with the text boxes on the other side:
CheckedListBox and "TextBox"s side to side http://i40.tinypic.com/358vt52.png How to do this ?
After doing some research I found out that CheckedListBox
inherits ListBox
, so it must have its public property ItemHeight
, but for some reason it doesn't
I tried this :
ListBox l = CheckedList as ListBox;
l.ItemHeight = 30;
but it didn't work
This works in VS2013 net FrameWork4.5 code is VB
Put declare and constant at top of class
Usage put rest of code in Form_Load as in example code.
The default implementation of ItemHeight property of CheckedListBox is,
you can cleanly override this property in a new class.
this should allow you to set your own ItemHeight.