2

I wonder why when using windows forms listview checkboxes the rendering is different according to if I use the Windows aero theme, but standard checkboxes stay with 3D rendering.

See this example without Windows aero theme.

A normal checkbox:

enter image description here

A listview with checkboxes:

enter image description here

How can I change the listview checkboxes style to get the same rendering than the normal checkbox ?

Thanks a lot.

PP_RhuM
  • 81
  • 8
  • With a Windows aero theme, listview checkboxes display correctly. The rendering issue occurs only if Windows aero theme is not enabled. I effectively use ListView.CheckBoxes = true. – PP_RhuM Mar 07 '17 at 10:57
  • I miss that *no aero theme* part, sorry. But then the answer is really easy: in classic mode there is [no visual styles](http://stackoverflow.com/a/5141282/1997232) anymore. Winforms is inferior technology (wpf is not), `ListViewItem` is not `CheckBox`, instead `ListView` will draw **state** as something what only looks like checkbox. Without themes it looks that ugly. Try to [draw custom items in listview](http://stackoverflow.com/q/20012097/1997232) in that mode. I think the problem is in [this](https://msdn.microsoft.com/en-us/library/a7ew2xw1(v=vs.110).aspx) method used by `ListView`. – Sinatr Mar 07 '17 at 11:18

0 Answers0