Determine if a form has been loaded

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
There are two versions of this function here: One for use in a .bas module contained in the same project as the form being tested. The second version is for use in an external class: to use this function, pass the form name you are testing for, and Forms (i.e., the Forms collection) as the 2nd argument.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: