screenshot of a winforms control through C#
问题 Is it possible to get a screenshot of a control in winforms without actually displaying it on the screen? How about a webBrowser component? 回答1: Yes. This can be done. I whipped up a sample program to do it. Forgive my naming conventions and code organization, this was whipped up very quickly. You can modify it to better fit your needs, but this shows the basics. I have a single form with three controls: button1: Button with the default settings. button2: Button with the Visible property set