I’m trying to create a class that inherits from ListViewItemCollection, and I got this error: “No overload for method ‘ListViewItemCollection’ takes ‘0’ arguments”.
Any idea how to fix it or how I can inherit from this class. All suggestions are welcome. Greetings!
Frederik’s answer is correct, ListViewItemCollection class needs an owner i.e. a ListView object to be passed in to the constructor.
However, I think his declaration is wrong, you may need to do: