Visual Basic Reference

Object was unloaded (Error 364)

See Also

A form was unloaded from its own Form_Load procedure. This error has the following cause and solution:

  • A form with an Unload statement in its Form_Load procedure was implicitly loaded. For example, the following will implicitly load Form2 if it isn't already loaded: Form2.BackColor = Form1.BackColor.

    Remove the Unload statement from the Form_Load procedure.