A generic error occurred in GDI+.
Here is my code
[code]
Bitmap bmpScreenshot = new Bitmap(230, 150, PixelFormat.Format32bppArgb);
Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);
Size thesize = new Size(230, 150);
gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, thesize, CopyPixelOperation.SourceCopy);
bmpScreenshot.Save(@"C:\test.png", ImageFormat.Png);
[/code]
Any ideas?

