From f58dc1d7f37fe9e41db8d963a86da2818fbdde2c Mon Sep 17 00:00:00 2001 From: Russ Kollmansberger Date: Fri, 19 Jul 2024 08:37:25 -0500 Subject: [PATCH] Add ListItemPropAndMethod.cs --- ListItemPropAndMethod.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ListItemPropAndMethod.cs 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