Questo esempio è in VB.NET (2008), ma mostra proprio quello che stai cercando

http://nuke.vbcorner.net/Progetti/NE...T/Default.aspx