So earlier, I decided to work on Imaer again (see last post) due to the fact that I am now running a dual monitor setup and Imaer’s upload screen selection option would only build its selection form on the primary screen. I needed a way to make the form span all the screens perfectly.
I of course went to Google and searched for some information, but couldn’t find any examples doing exactly what I wanted. I found some useful information regarding the class I’m using though, which is System.Windows.Forms.Screen. I realized how incredibly simple it is to do what I wanted to do after taking a look at this class, and decided to post the small amount of code so that maybe someone in the future will be able to find it when they decide to Google it.
I’m someone who likes to show screenshots a lot – whether it’s the full-screen, a single application, or just a small crop. It was always very tedious to hit printscreen (or alt+printscreen, to only capture the window that’s in focus), paste this in an image editor (I prefer JASC Paint Shop Pro 7, it’s lightweight and more features than I need), crop it first if needed, save it, then go to an image hosting site such as ImageShack or TinyPic and upload it, then retrieve the URL to the newly hosted image.
So I decided, with my knowledge of Visual Basic .NET (even if it’s not very extensive, mind you), to create a small program to handle almost all of the work for me. I won’t go through the program’s entire life-cycle in this post, as it’s at least more than a year old by now, but it’s in C# now. I’ll mention now that all images are uploaded to ImageShack. I used to use PicOodle but they had changed their site (for the worse?) so you have to log in to upload images.