The text of this article is not in this database — only its details are. Read it on the old site: A Simple Screen Capture Program without API Calls in VB.NET
1 Comment
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
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..