Maybe you need to add the Microsoft.VisualBasic.Compatibility.VB6 namespace.

Regards
Jorge