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? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -