try this code
Bitmap bmp = new Bitmap(pnControls.Width, pnControls.Height);
pnControls.DrawToBitmap(bmp, pnControls.Bounds);
int folderName = 0;
newPath:
folderName = folderName + 1;
string path = "E:\\Test" + folderName;
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
bmp.Save(path + "\\ID_CARD.bmp");
}
else
{
goto newPath;
}