>>Hi everybody,
>>
>>I have a class with properties and methods I need to incorporate into the form I'm using (which is based on another class and I need to preserve it). What would be the simplest way to add them?
>>
>>Thanks.
>
>
>Create a Form property called oMyObject, then in the Load() or Init() event:
>
>
> this.oMyObject=CreateObject("MyClass")
>
>
>then you can use it thoughout the form like this:
>
>
>thisform.oMyObject.SomeProperty=999
>thisform.oMyObject.SomeMethod()
>
No, I need to add these methods in design-time, so I can adjust the code.
If it's not broken, fix it until it is.
My Blog