
Originally Posted by
Dan
That doesn't work either I'm afraid...
I hope I can get something that works soon.
Try this:
Put this at the top of the class file (form file, whatever)
Code:
Imports System.Drawing
Imports System.Drawing.Imaging
And this where you want to save it
Code:
Dim img as Bitmap = new Bitmap( Me.Width, Me.Height )
Dim g as Graphics = Graphics.FromImage( img )
g.CopyFromScreen( new Point( Me.Left, Me.Top ), new Point( 0, 0 ), new Size( Me.Width, Me.Height ) )
img.Save( "filename.jpg", ImageFormat.Jpeg )