http://www.buygold.net/vbtips.html

Examples in VB.net here