Is it possible to actually save this windows form as image? like when the user clicked the save as image? If yes, Is it okay to provide me codes for this? Thank you.
Asked
Active
Viewed 5,790 times
0
-
have a look at this http://stackoverflow.com/questions/2563381/vb-net-window-screen-capture-altprintscreen – Bender Jun 15 '16 at 05:41
-
Do you just want to save the *contents* of the form, or do you also want to include the title bar and the menu bar? – Cody Gray - on strike Jun 15 '16 at 06:08
-
Yes, I also want to include the title bar and the menu bar. :) – Raniel Quirante Jun 20 '16 at 03:39
1 Answers
3
First of all there will not be anyone providing code for you here.only guidance or some light to your solution will be given.
So as a light to the solution,look at this method supported by .NET.
you can use the method like :
Dim frm = Form.ActiveForm
Using bmp = New Bitmap(frm.Width, frm.Height)
frm.DrawToBitmap(bmp, New Rectangle(0, 0, bmp.Width, bmp.Height))
bmp.Save("c:\temp\screenshot.png")
End Using
hope this provided a small input to the solution.

akhil kumar
- 1,598
- 1
- 13
- 26
-
hi! thanks for the idea :) I've combined this idea with the video I watched on youtube. Thanks again! – Raniel Quirante Jun 20 '16 at 03:38
-