How to set the space between items in a marked list?

I am developing a Windows form application using C #. How to set a space between items in a marked list ?

enter image description here

+6
source share
2 answers

You cannot, increasing the font size is all that you have. Not exactly control suitable for touch screen. You can reimplement it with ListBox.DrawMode and ControlPaint.DrawCheckBox ().

The best choice here is a ListView with View = Tile, which is easy to hit with your thumb when you make the tile big enough. You can no longer use ListView.CheckBoxes using the icon is a good choice. It also automatically takes care that the user selects only one item.

+6
source

It looks like you can go with a ListView (which is always always always the best choice) and a mannequin. See here and here .

Just tried it, and it’s very simple: add a framework to your form; set its image width to something small and its height to your liking and apply to it as a listview stateimagelist element. No valid images needed.

You don’t have to go for tiles, and you can add prices to the second column, even with a different font. ListView rules; -)

Let's look at the final result! Yumm !!

+1
source

All Articles