I am migrating a VBScript to a VB.net app. The first line is the code I used in VBScript, but that doesnt work, and have tried the second one with no success.
I get "Unable to cast COM object...
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23579709.htm...