A Simple Screen Capture Program without API Calls in VB.NET
This is a really simple basic screen capture utility that needs no API calls. It captures the whole screen and then you can either save it into a file or show it (draw it actually) on the form.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: A Simple Screen Capture Program without API Calls in VB.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Nasurudeen YasuPosted Nov 15, 2012, 1:47 AM
i am try to capture the scree by using following coding.. Dim gr As Graphics bm = New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, Drawing.Imaging.PixelFormat.Format32bppArgb) gr = Graphics.FromImage(bm) gr.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, New Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)) but "The handle is invalid" error occoured..