|
-
Dec 7th, 2012, 12:07 AM
#1
Thread Starter
Addicted Member
Have my program screenshot its own entire form/windows & upload to ftp/email?
Ok so I've made a new program that I am running on 3 or 4 different user accounts on my pc. Just a basic program/form with 3 buttons and like the only control on it is a WebBrowser Control.
What i want to do eventually is have a control panel made in php which shows all the different programs in their current state (tiny screenshots of each form & what its doing).
Basically to let me know that the programs still running/not erroring. But for right now...a screen shot sent to my e-mail or to ftp would be simple enough & I could check it from my Android when I'm at class & unable to login via teamviewer/logmein.
I've got the code already for sending basic smtp e-mails & I'm pretty sure I can figure out how to do a simple ftp upload via a search function on vbforums.
Ok so #1...how do i do a screenshot of JUST my program & not the entire desktop. Is it possible to do from within the currently running application I wish to screenshot, or do i need to build another exe for it?
#2 So like...in your opinion...what would be the best way to tie the screenshot & smtp/ftp functions together & have any of you seen a request/forum post like this before?
Thanks a whole bunch guys! Back to wrapping Christmas presents lol!
J.
dim jenn as geek = true
Learning ~ Visual Basic 2010 ~ in free time between college/work -
currently looking for a 'programming buddy' / 'coder friend' / and or 'mentor'. p.m. me if you
have ANY free time AT ALL I'm like 33% of a novice level ~ willing 2 listen/learn +
i am totally super motivated & promise to make an effffin amazing protege!!! #swag
| -_-_- -_-_- |
...W.T..F!?.....
||| Matter on the atomic/quantum level isn't solid or even matter at all. It can also exist in at least 2 places simultaneously (demonstrated in lab). It's position can only be established when it's actually observed. If we turn our back on it... it goes back to a wave form. History show's that every previous generation (since the beginning of time) got almost everything wrong. Then it might very well stand to reason that up is down & right can be wrong. Admit it.. our combined perception of reality is just that, we know absolutely nothing of actual reality & to think we do is simply subscribing to a "ignorance is bliss" mantra |||
-
Dec 7th, 2012, 12:49 AM
#2
Re: Have my program screenshot its own entire form/windows & upload to ftp/email?
Basically you would start by creating a new Bitmap object with the same dimensions as the form. You could then call Graphics.FromImage and Graphics.CopyFromScreen to take a screenshot of a particular area. Better would be to call DrawToBitmap on your form, but I'm not sure that a WebBrowser will render properly. The problem with a screenshot is that your form may not be fully visible.
As for sending the image, you could just attach it to an email. The System.Net.Mail.MailMessage class documentation has a code example.
-
Dec 7th, 2012, 01:37 AM
#3
Fanatic Member
Re: Have my program screenshot its own entire form/windows & upload to ftp/email?
HI, two results I have found in relation to screen shots,
http://www.vbforums.com/showthread.p...enshot-to-jpeg...
and
http://www.johnkoerner.com/index.php...in-VB.Net.html
and you could also just upload the saved file to a web server with a webpage that loads the file. only have to look at the webpage
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|