Bitmap bitmap = new Bitmap(990, 540); Graphics graphics = Graphics.FromImage(bitmap as System.Drawing.Image); graphics.CopyFromScreen(5, 160, 0, 0, bitmap.Size); bitmap.Save(@"c:\\" + ddlSession.Text.ToString().Trim() + "DailySchedule.bmp", ImageFormat.Bmp); lblUpdate.Text = "This image is saved";
System.ComponentModel.Win32Exception: The handle is invalid
graphics.CopyFromScreen(5, 160, 0, 0, bitmap.Size);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)