How do i create the graphics object from the window handle?

thanks

Re: graphics object from handle by thomas

thomas
Sat Mar 12 11:57:52 CST 2005

assuming your window is a form namend 'f':
Graphics g = Graphics.FromHwnd( f.Handle)

WM_HOPETHISHELPS
thomas woelfer
http://www.die.de/blog



"ve" <ve@discussions.microsoft.com> schrieb im Newsbeitrag news:7BB4FDEE-1004-4304-A708-87BF90DB5774@microsoft.com...
> How do i create the graphics object from the window handle?
>
> thanks