I guess it is a desktop application and that TakeImage(,,,) works. In your form, add a button, double click it and just call TakeImage from there.
Then there is saving as jpeg - just google on how to convert the bitmap(?) format from TakeImage to jpeg and google how to save it. In VB.Net it should be rather easy to handle files.
But first set a return type on your TakeImage function. Probably like as Image
. It doesn't change your program but is good practice and will aid you in your learning as the editor will continuously give you helping feedback.
Happy hacking!
manpreet
Best Answer
2 years ago
I want this program for when user click on something either in application or outside of that, make a screen shot and save it as jpeg to a folder
This is the code that I want put those option in it:
by the way I'm beginner in VB.NET