PS the code is VB you can paste it here http://www.developerfusion.com/tools.../vb-to-csharp/ to c# it. Ive done it already to test and it works fine.