Capture screenshot without capturing the print screen button

Is there any way that can capture a screenshot without capturing the print screen button?

I tried this before, but fail

screencapflag = true;
Draw ();

string filename = “01.png”;
Application.CaptureScreenshot(filename);

while (!System.IO.File.Exists(filename))
{
continue;
}

screencapflag = false;
Draw ();

thanks.

Just disable the button before you call Application.CaptureScreenshot(filename);?

Thanks for the reply.
but I tired to disable the button and enable it just after i called Application.CaptureScreenshot(filename);
however, as the function is asyc, the button is enabled before the capture,
and finally, there’s still a button in the screen captured.