Ah, sorry about that, didn't realise that you were coding in C#.

If you are not familiar with it already, have a look at this website:

http://www.developerfusion.com/tools.../csharp-to-vb/

It will attempt to convert the C# code to VB.Net for you. It isn't always 100% correct, but it should get you the majority of the way.

Also, as you mentioned, it is the principles of the article that are important, not really the code.

Gary