Enrico, Some samples: in first procedure message is show after window closed, in seconds before ... What is properly - my opinion after. Regards Pawel Function TestWnd () Local oWnd := Nil Define Window oWnd Title 'Test Window' @ 100, 100 Button 'Window2' Size 60, 20 Pixel Action Wnd2 ...