c# - How to get a screen capture of a .Net WinForms control programmatically? -


how programmatically obtain picture of .net control?

there's method on every control called drawtobitmap. don't need p/invoke this.

control c = new textbox(); system.drawing.bitmap bmp = new system.drawing.bitmap(c.width, c.height); c.drawtobitmap(bmp, c.clientrectangle); 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

visual studio - Deleting lines of code in a text editor -

What's the encoding type of Android 2.2 push message? -