I have a Subclass of DesktopListbox in which i’ve added a PaintCellBackground Event.
In this event selected rows will get the Color.Highlight Color as Background Color.
This is working as expected while running my app in light mode.
In dark mode the event is executed but the painting does not happen.
If i use the same code in a non-subclassed listbox, it works as expected again.
How can i make sure the Code in the Subclassed DesktopListbox is respected without me having to add a PaintCellBackground Event in each of my object which use this subclass?
Because i need the Return RaiseEvent PaintCellBackground( g, row, column ) for instances in which i use this subclass but extended it’s functionality in the PaintCellBackground Event and i don’t want to add a Return True i all those instances. And sometimes i need to Return False here, too.