Most errors I see have to do with Strict and Explicit, but some occur with Infer. For VB I think this
Option Strict On : Option Explicit On : Option Infer Off
is the best place to start. It does make writing For Next a bit more cumbersome, but it does mean there will be no question about your intent.