belongs to class (how to check)
I have a listbox with all the tenants. and I would like to put 3 chechboxes into the form: Students, Teachers, Guests. If a checkbox for the class is selected the objects of this class will stay in the listbox, while objects of the class that has an unchecked checkbox will not appear in the listbox.
What is the easiest way to check if an object belongs to some class or not?
I might use an if statement like this:
If tenant1 [is an instance of Students] Then
lstbox.Items.Add(tenant1)
ENd If
But what should I write instead of [is an instance of Students]?
Thank you. :)

