Call on an instance of class window

I’m admittedly no expert in objects and classes but I have been using Xojo for sometime with a mostly favorable impression. However, I’ve been trying to figure out how to implement a date picker and found the example project “CalendarWindow”.

Granted I haven’t coded everything I need to make it usable yet but I copied the CalendarWindow from the sample project to my project. Put a button on my window with the action: “CalendarWindow.ShowModal”

Get a compile time error that says " Static reference to instance method: call this on an instance of class Window"

So, what does this mean and what do I need to add to the project to clear this up?

CalendarWindow does not have implicit instance.

Do somethings like :

Dim CW as new CalendarWindow CW.Show

Thanks Michel, I’ve monkeyed around with various code and I got it to work now.

thanks again