diff --git a/ListItemPropAndMethod.cs b/ListItemPropAndMethod.cs new file mode 100644 index 0000000..7348fd0 --- /dev/null +++ b/ListItemPropAndMethod.cs @@ -0,0 +1,11 @@ +// Change the ListItem Height +// This method will work with both the ListView and ObjectListView. +// Information was taken from: https://stackoverflow.com/questions/6563863/c-sharp-change-listview-items-rows-height + +private void SetHeight(ListView listView, int height) { + ImageList imgList = new ImageList(); + imgList.ImageSize = new Size(1, height); + listView.SmallImageList = imgList; +} + +SetHeight(lvConnections, 25); \ No newline at end of file