Call listbox function from class within

I have a class defined inside a listbox. how can I call a function from the listbox ?

MyClassInstanceName.MyFunction

And assuming that MyClassInstanceName is a property of your listbox subclass, and assuming that the code is in an event of the listbox instance on the window, you would use “me” as well.

me.MyClassInstanceName.MyFunction

If the code is in a method of the listbox subclass, then you can omit “me” as Roger did. So depending on where your code is, you may or may not need to supply “me” to refer to the class function. The compiler will let you know if you get it wrong. :slight_smile: