Image myImage = new  Bitmap(m_maxw, m_maxh);  Graphics gr1 = Graphics.FromImage(myImage); 
 
IntPtr dc1 = gr1.GetHdc(); 
 
IntPtr dc2 = NativeMethods.GetWindowDC(NativeMethods.GetDesktopWindow()); 
 
//NativeMethods.BitBlt(dc1, 0, 0, Screen.PrimaryScreen.Bounds.Width, 
 
// Screen.PrimaryScreen.Bounds.Height, dc2, 0, 0, 13369376); 

NativeMethods.BitBlt(dc1, 0, 0,m_maxw, 
 
m_maxh, dc2,865-m_maxw+150, 41, 13369376);  gr1.ReleaseHdc(dc1); 
pictureBox1.Image =null;
pictureBox1.Image =myImage;