...with a few minor exceptions.
The example in C# should be identical in
VB.NET.
VB.NET and C#.NET are both .NET compliant languages and use the same class libraries. There are things
VB.NET can do using the Microsoft.VisualBasic namespace which are mostly a lot of functions that come from previous versions of
VB. This is to simplify converting code and maintain some backward functionality. I personally try to stay away from that namespace because most everything you want to do you can do with the standard .NET functionality under the System namespace.