Displaying thumbnail icons 128x128 pixels or larger in a grid in ListView

后端 未结 5 649
栀梦
栀梦 2020-12-07 20:39

Original Question (see Update below)

I have a WinForms program that needs a decent scrollable icon control with large icons (128x128 or larger thumbnails, really)

5条回答
  •  广开言路
    2020-12-07 21:05

    For update:

    1. Set image list color depth in addition to image size (ilist.ColorDepth = ColorDepth.Depth24Bit)
    2. WinForms ListView does not have possibility to change icon spacing, however it can be easily done using Win32. You need to send LVM_SETICONSPACING to your ListView (there is a lot of tutorials how to use SendMessage win32 function in .net, so I think this direction must be enough for you).

提交回复
热议问题