Screen capture of Winforms control instance that is not on a Form
Is there a way to obtain a bitmap rendering of a Windows Forms control, specifically a WebBrowser, upon creating an instance, but not adding it to a visible form? A mechanism like WPF's measure & arrange that would allow me to render it to a bitmap.
I'm targetting .NET 4.0 and looking for a way to captu开发者_开发问答re the WebBrowser control's contents without ever displaying it.
See this question: WebBrowser.DrawToBitmap() or other methods?
精彩评论