The difference between the built in VBScript approach and using VB.net (or visual studio) is the need to add references to the mentor tools:
How to: Add or Remove References By Using the Add Reference Dialog Box
You would need to add a COM reference to Viewdraw