Window created at runtime

A menuitem instantiates a movable modal window at runtime (Dim testWindow as new DetailWindow). DetailWindow has one ListBox and one PushButton (Close). The click action (DetailWindow.close) on the close button doen’t close the testWindow. What am I doing wrong?

Because you want to close testWindow ?

In the PushButton, use Self.Close ?

Change the command to self.close

Emile, Simon… Thanks!