Normally, in declarations youd put something like

Private WithEvents MainIE As New SHDocVw.InternetExplorer()

and this MainIE could be accessed from anywhere in the app.

but what if you wanted to create this object within a sub like form_load? How can you do it? (and allow it to be accessible from anywhere in Form1, not just in Form_load)