Access a control on a different Form
Posted on 2004-11-11
I have an application that has a Database control on one form.
When a connection is attempted, this is done by loading a new form and accessing the Database connection control on the Main form.
What is the simplest way to achieve this?
I have tried several ways, and even with the control marked as public, I get 'Undeclared Identifier'.
There is obviously something missing, but I can't see it!!!
Alternatively, is it possible/sensible to have an object Global to the application - if so, where should it reside?
Any help would be appreciated...