Biker1
Nov 11th, 1999, 04:27 AM
Does Anyone know the coe to take a screen shot in vb
thanks alot
tom
tomlawrance@england.com
Björn
Nov 11th, 1999, 05:36 PM
Sure. (Don't have full source-code but an idea)
When copying parts of a picture you use the API BitBlt. BitBlt exspects an hDC as a parameter. So you need the hDC of the Desktop. That could be done by hDC = GetDC(GetDesktopWindow).
BitBlt(Picture1.hDC, 0, 0, Screen.Width / TPX, Screen.Height / TPY, hDC, 0,0, SRCCOPY)
Hope that helps
Björn