Hi Sandip, Thank you very much for your so nice help. I tried the code above, but it still doesn't work. I debugged it. rect.left is -2200, rect.right is -786. Does it mean the parent lies in the secondary display? I set the secondary display as in the left side, and the primary display in the right side. The strange thing is that whatever I do, the pop up window is always in the primary display, the same position. Best regards,