Thanks Allan But I can to close one window.... The problem is many windows.. I'm going to explain my app, when time expire I need to close all windows that are open, however, some of these windows are ShowDialog, when I execute the sample code above the only windows that are closed are the MDIChildren, however, ShowDialog windows not is MDIChild and therefore still open, I can't handle these. I don't know who is owner of theses windows ShowDialog() I'm tired..:laugh: