The script you've posted opens a dialog when a custom window opens and close it when it closes. What I need is a method to DOCK the dialog IN the custom window. There are dlls which let you dock window to a dialog control, but I don't know if there is such to dock dialog in a window. smile