I have searched both high AND low and haven't found the solution for this... Maybe I'm just looking too hard.
I have an application which uses a specific ActiveX control (LEADtools) on many of the forms. With each form, the user will have the opportunity to do the same sorts of things with the control (zoom, crop - whatnot).
It seems to me that if I write a Sub, Function or Class that I can use throughout my app, it would be much easier on me when I need to update some code. Herein lies my problem:
How do I pass the control / form to a sub/func/class so that I can act on it? The following code doesn't work (of course)
Public Sub Zoomin(Leadcontrol as LEAD, ActiveForm as Form)
Forms!ActiveForm.Leadcontrol.Zoomlevel(1)
' More Code Here
End Sub
I don't even get into the sub of course, because of the type-mismatches.
Am I barking up the wrong tree? Suggestions would be fantastic!
Thanks in advance...
-Jeff
I have an application which uses a specific ActiveX control (LEADtools) on many of the forms. With each form, the user will have the opportunity to do the same sorts of things with the control (zoom, crop - whatnot).
It seems to me that if I write a Sub, Function or Class that I can use throughout my app, it would be much easier on me when I need to update some code. Herein lies my problem:
How do I pass the control / form to a sub/func/class so that I can act on it? The following code doesn't work (of course)
Public Sub Zoomin(Leadcontrol as LEAD, ActiveForm as Form)
Forms!ActiveForm.Leadcontrol.Zoomlevel(1)
' More Code Here
End Sub
I don't even get into the sub of course, because of the type-mismatches.
Am I barking up the wrong tree? Suggestions would be fantastic!
Thanks in advance...
-Jeff