Closing Property Manager Page

Hi all,

I am working on an own property manager page in  SW API that has a lot

of controls. I added a command button at the bottom of the page that

should do the same as the green "Okay button" on the top. I am trying to

use the ".Close " method to close the property manager page but it seems

nothing happens. Does anybody have an idea how to solve it?  Thanks!

I attached a test macro to show you what the problem is.

SolidworksApi macros