Passing variables in ActiveX DLL with form
Posted on 2003-03-10
I would like to know if there is a cleaner of way of doing this...
I have an ActiveX (DLL) project that contains a Public Class, a Form and a module. When the class is instantiated, one of the methods of the class is to show the Form, which acts basically as a visual interface to set the properties of the class. Now it's not that hard to access the properties of the class from the Form, but the only way I can see to set the properties in the class from the Form is to use public duplicate variables in a module, which is then accessable from the class. To me, this kind of defeats the object of data encapsulation? Surely there must be a better way to tranfer the values from the Forms' controls back to the Class' properties?