Q: How can I convert VB.NET code to C#?
A: The most proper way would obviously be to try to do it manually. Whenever you do gets stuck on issues such as Casting, for example, browse google for the terms, browse MSDN for answers, browse the C# forums & ask questions on where you get stuck. This, IMHO, is the best way to learn
There are also free online Code Conversion tools available which can translate VB.NET code into C#, and vice versa. Here are 2 of the mosts accurate tools I could find: