winforms - C#: Prevent ListViewItem Image to be rendered selected -


I was wondering whether the listview would be possible, in which the item can be chosen normally with a difference when A ListViewItem is selected, I would like to see a selection in the text label, though I like the image to be the same. The reason for this is that, currently the blue selection on top of the image looks terrible (the effect is also bad on transparent images!).

I was hoping that the use of the drawing handler should not be used, but I think the expectations are slim.

Thank you very much,

Best

Frank

EDIT: I thought I'd better add a screenshot showing the problem. I am using the LargeIcon mode in the ListView

** Where I am not allowed to add images yet, so here is the link. Sorry for the inconvenience. ***

As you can see, the selected element is 'rate versus species'. However, I love to blue on the icon to disappear.

Thanks again

For a winforms listView, the easiest way I To know about the succession will be the list view, and override the OnDrawSubitem to change the drawing of your image only, if you do this, then you have to set the owner draw on the right and in the form of the Ondrak column header It has to be overridden well.

Note that if you do not want to inherit, you can handle the DrawBeet and Draw Clauses header instead.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -