I have a form with controls, I need capture this form to image. Please help me. Thanks.
//Control cntrl; previously declared and populated
Bitmap bmp = new Bitmap(cntrl.Width,cntrl.Height);
cntrl.DrawToBitmap(bmp, new Rectangle(Point.Empty, bmp.Size));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With