Check out this thread . I posted a link to the .NET way of doing so :
http://www.vbforums.com/showthread.p...hreadid=305829