Paul,
if you want to implement .NET 2.0's Control.DrawToBitmap
you can do this only by using PInvoke and win32 API.
There are two approaches: sending WM_PRINT message and calling PrintWindow
API.
Both produce similar results, even though they do it in a different way and
both has issues. DrawToBitmap uses WM_PRINT, but I personally found that
PrintWindow produces better results. There are controls such as richeditbox
that doesn't print itself when using either of those methods.
As far as it goes for Graphics.CopyFromScreen you also need to resort to
windows API and use BitBlt method + some of the API methods for obtaining a
device context (HDC) such as GetDC.
--
HTH
Stoitcho Goutsev (100)
"Paul_Madden via DotNetMonster.com" <u21795@uwe> wrote in message
news:606e536381437@uwe...
How can I get a bitmap of a Form using .NET 1.1 (ie NO CopyFromScreen)
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200605/1