>In the project we are working on, we currently use two different approaches to variables. The first one is making the variable public in a module and then putting it into a local variable on the current form. The second method is making the variable public on the form and then just read/write to it from anywhere else in the project. We would like to know the pros/cons of these two methods so that we can adopt one or the other. Thank you for your assistance in this matter!
To access a public property on a form, the form must be in memory. If it isn't, the form will automatically load and your property will be reinitialize.
Forms take much more resources than standard module.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com