We want to be able to printScreen a window inside
a timer control several times a second, we have a VB.NET
project ,which we have attached, which does this
using PrintWindow() function in windows API. We need
to use this API function since it allows us to
printscreen a window EVEN when it is covered
by another window and it is fast enough.
However there is a problem, when we take many
printscreens the window that is being captured, it
stops being painted or displayed propperly, and
regions inside that window are not refreshed.
We have attached a small VB.NET 2005 project
which allows you to reproduce the problem by
simply selecting a window which is often refreshed
(like a webbrowser window, or a small game)
and start capturing. You will after some time
see that the window stops being painted.
We request a VB.NET solution to this problem,
or alternativley a code
which is fast and able to printscreen a window by
its handle EVEN when it is covered completley (not
minimized).
NOTE:
GraphicsInstance.CopyFromScreen() doesnt work on
covered windows
a timer control several times a second, we have a VB.NET
project ,which we have attached, which does this
using PrintWindow() function in windows API. We need
to use this API function since it allows us to
printscreen a window EVEN when it is covered
by another window and it is fast enough.
However there is a problem, when we take many
printscreens the window that is being captured, it
stops being painted or displayed propperly, and
regions inside that window are not refreshed.
We have attached a small VB.NET 2005 project
which allows you to reproduce the problem by
simply selecting a window which is often refreshed
(like a webbrowser window, or a small game)
and start capturing. You will after some time
see that the window stops being painted.
We request a VB.NET solution to this problem,
or alternativley a code
which is fast and able to printscreen a window by
its handle EVEN when it is covered completley (not
minimized).
NOTE:
GraphicsInstance.CopyFromScreen() doesnt work on
covered windows