Question

Is it possible to make my custom item class so that I can put it straight into a listviewitem? What I mean is a listview and I want to be able to do Listview.items(0) = Item

Or is this not possible?

Was it helpful?

Solution

You can make your class derive from ListViewItem

Public Class MyItem
    Inherits ListViewItem

    ....

End Class

This allows you to use MyItem in all places where a ListViewItem is accepted.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top