Capture the screen area of one control in VB.NET

SoftwareEng

Senior member
Apr 24, 2005
553
4
81
Hi guys,

I need to capture the area on the form of one of my controls. For example, I have a grid or a button, and I need to capture its picture without faking the Alt+PrtScr keystroke. This needs to happen at runtime.

Any ideas? Thanks!
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,576
4,492
75
I have done this before, capturing a screenshot of an entire window, and finding the location of a control in that window. It looks like I actually called VBScript, and did window.CaptureBitmap [filename].