i think you can simply use
me.visible=true
istead of
Form1.ActiveForm.Visible = True