Passing a control object to ActiveX control?
Hi, Sir/Madam,
Could you give me some clues about passing a picture box object to an
ActiveX control method?
Or alternatively:
Could you tell me how to reference a picture box which is the container
of a user-defined ActiveX control object?
Background:
I am writing an ActiveX control in VB5.0. I would like the control to be
used on a picture box(e.g. Picture1) which is in turn on a form (e.g.
Form1). The picture box, Picture1, is the container of the ActiveX
control object. I would like to draw graphics within the ActiveX control
onto the picture box, Picture1.
In short, there is a form called Form1; on Form1 there is picture box
called Picture1; on Picture1 there is an ActiveX control object. Whithin
a method of the ActiveX control, I would like to draw graphics on
Picture1.
Problem:
When I use " Extender.Parent.Name", I think the value should be
"Picture1", but in fact it gives me "Form1". How can I reference the
Picture1?
Alternatively, is it possible to pass Picture1 as a parameter to the
ActiveX control method? (I tried this but not successful)
Your help would be highly appreciated.
Charlie