Yeah, sorry, that should have been the code. What I wrote is a mixture of VB and C#, sorry about that