Hello,
you need DelphiCode to get the screenshot or just want the screenshot?
If you only want to take a screenshot, move the form out of the screen und use a snipping tool to get the screenshot.
Windows has a build in snipping tool.
I do not understand the "shows it again".