Here's a nice thread :
http://www.vbforums.com/showthread.p...hreadid=194447
Most of it is in VB but it should not be that hard to follow (if you only know C#)