try switching Option Strict On and see
Dim frm as Form1= Me.Owner will throw an error , as it's a bad cast , the correct vb.net syntax is using DirectCast