Archive for WinForms

A Wrapper Class For hostip.info’s GeoLocation Service

March 18, 2009 | 2 Comments

hostip

GeoLocation refers to identifying a real-world geographic location of a computer, device or website visitor. There are a many websites that provide this service, some are free and some are not. A populare and free one is hostip.info. It provides country, country code, country flag, city, latitude and longitude of an IP address.

Read more…

Filed Under: ASP.NET, Mono 2.0, WinForms

An Open Source Website Screen Capture Program

March 14, 2009 | 3 Comments

SiteCapture

A few weeks ago I posted Taking Thumbnails of a Website, that shows how to take a screen shot of a website using the Web Browser control. I used the code from the post to develop SiteCapture as an open source application.

Read more…

Filed Under: WinForms

Displaying Gravatars Using C#

March 2, 2009 | 5 Comments

gravatar

Gravatar is a popular avatar service that links email addresses to the avatar. You do not need to register an account to be able to display gravatars on your site. All you need to do is construct the URL of the image using the user’s email.

Read more…

Filed Under: ASP.NET, WinForms

Using the Phidgets LCD With Outlook

February 26, 2009 | 1 Comments

Phidgets LCD

When I got my Phidgets StarterKit I decided to use the LCD that came with it with the Outlook Addin I developed for my previous post Capturing Outlook 2007’s New Mail and Reminder Events. The LCD connects to the PC through USB. It has no memory, so the control program runs on the PC. The libraries needed to develop programs for the hardware can be downloaded from their website along with some sample code too.

Read more…

Filed Under: WinForms

Get a Movie’s Details From IMDb

February 23, 2009 | 7 Comments

imdb

A while back when I was developing MoviePlay (a movies database) I wanted to allow the user to get the movie’s details from IMDb (The Internet Movie Database) instead of having him/her enter it manually. IMDb does not provide a way for developers to use their data, so I wrote the code below to screen scrape or web scrape the details from the movie’s page. It gets the title, director, genre, release year and tag line of the movie as well as the thumbnail.

Read more…

Filed Under: ASP.NET, Mono 2.0, WinForms

Taking Thumbnails of a Website

February 19, 2009 | 7 Comments

website_screenshot

I always wondered how web directories take thumbnail snapshots of my blog when I register with them. And yesterday I had some free time to find out how it could be done in C#. I used the WebBrowser control to achieve this. Here is how I did it.

Read more…

Filed Under: WinForms

Starting and Stopping the ScreenSaver

February 13, 2009 | 0 Comments

Starting and stopping the screensaver in C# can be done by calling the Windows API’s PostMessage function, which posts a message to the Windows Message Queue asynchronously. Starting it is straight forward. But stopping it is somewhat tricky. I accomplished this here by stopping the window on the foreground which will always be the screensaver if it is running.

Read more…

Filed Under: WinForms