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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -