private void MENU_ScreenDump() { try { String _str = DateTime.Now.ToString("yyMMdd-HHmmss"); Rectangle bounds = Screen.PrimaryScreen.Bounds; using (Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height)) using (Graphics g = Graphics.FromImage(bitmap)) { g.CopyFromScreen(new Point(bounds.Left, bounds.Top), Point.Empty, bounds.Size); bitmap.Save("C://temp//screen-dump-" + _str + ".jpg", ImageFormat.Jpeg); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }