したがって、ユーザーがボタンを押すと、このメソッドが実行されるこのフォームがあります。
//Takes a screenshot of the screen to send it with the email
private void screenshot()
{
Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics graphics = Graphics.FromImage(printscreen as Image);
graphics.CopyFromScreen(0,0,0,0, printscreen.Size);
printscreen.Save(@"C:\Users\*******\Desktop", ImageFormat.Jpeg);
}
しかし、ボタンを押すと、次のエラーが表示されます: GDI+ で一般的なエラーが発生しました。
何か案は?
前もって感謝します。