[DllImport("user32.dll")]
static extern bool PaintDesktop(IntPtr hdc);
None.
Draws the desktop background to the provided device context.
Please add some!
private void Paint(object sender, PaintEventArgs e)
{
IntPtr HDC = e.Graphics.GetHdc(); //Get the device context
PaintDesktop(HDC); //Paint the form with the desktop background
e.Graphics.ReleaseHdc(HDC); //Release the device context
}
Omnicoder's Managed Windows API: http://www.fileden.com/files/2008/4/5/1852663/ManWinAPI.zip