You are getting errors because you are in the wrong place... this is the VB6 Codebank, but you are using VB.Net

Post #22 is the only thing from this thread that you should consider using - for anything else (including help fixing issues with it) you should post in the VB.Net forum.