View Single Post
Dan
X10 Account Manager

Dan's Avatar

Join Date: Aug 2007
Posts: 1,156
Credits: 10,917
Dan has a brilliant future
Location: UK

 
09-24-2008, 02:45 PM
Re: Visual Basic Help!

Quote:
Originally Posted by Micro View Post
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 )
That works just great micro!!!
Thanks! Sending you 250 credits now for helping me.
__________________
Thanks,
Dan - Account Manager
dan@x10hosting.com

DO NOT PM ME OR ANY OTHER STAFF UNLESS ASKED TO DO SO.



Dan is offlineReport Post