I am making a screen capturing application and everything is going fine. All I need to do is capture the active window and take a screenshot of this active window. Does an
I assume you use Graphics.CopyFromScreen to get the screenshot.
Graphics.CopyFromScreen
You can use P/Invoke to GetForegroundWindow (and then get its position and size) to determine which region you need to copy from.