VB.net in a linux forum whatever next...
Anyway as one who suffers at work with C# I know the answer to this.
I'll point you to the article that helped me solve this problem which is
here.
I think most of this stuff is available in VB, just convert and expand as neccessary.