I am playing with creating a previewer and needed to grab a picture of the desktop -after playing with the latest GDI+ class libraries i found Whidbey has introduced this this exact functionality!

The following code draws the upper left 100 pixels of the desktop to the current form and saves it to a file

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim g As Graphics

g = Me.CreateGraphics

g.CopyFromScreen(0, 0, 0, 0, New System.Drawing.Size(100, 100))

Dim bmp As New Bitmap(100, 100)

g = System.Drawing.Graphics.FromImage(bmp)

g.CopyFromScreen(0, 0, 0, 0, New System.Drawing.Size(100, 100))

bmp.Save("c:\bmp.bmp")

End Sub