-
Hi,
I'm new to using classes. I would like to assign the calling form's drawwidth property from within a class, however I don't how to refer to it. I would like to use this class without modification with any form. I've tried "Me" and "ActiveForm" without success. I figured anyone here on a Saturday night must be hardcore enough to answer this. Please help.
Thanks in Advance,
Joey O
-
Why don't you have the Calling Form pass a reference to itself when calling the Class, i.e
Code:
Dim oMyClass As New MyClass
Private Command1_Click()
Call oMyClass.SetDrawWidth(Me)
End Sub