I have a fun application written in Visual Studio (C#), and I’m wondering – What I do is I draw panels in certain ways on the form – if it’s possible to render the form, without taking a screenshot?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If by “taking a screenshot” you mean “sending PrtSc“, then there’s a better way, using
System.Drawing.Graphics.CopyFromScreen:If you want to include the border, just use
Sizeinstead ofClientSize, andthis.Locationinstead ofthis.PointToClient(Point.Empty).Alternatively, you can use
this.DrawToBitmap:This will work even if your form doesn’t have focus. However, it will draw the border and it will draw it in Windows Basic style if Aero is active.