I declared a variable, say ctl, as VBControl.

I need to display the control's caption and picture if they exist.

I can retrieve the caption like the following,


Dim strTemp as string

strTemp = ctl.properties!caption


However the following code to get the picture does not work:


Dim pic as picture

set pic = ctl.properties!picture


I guess this is because ctl.properties!picture is regarded as "object" by Add-in, no as "Picture". But how can I convert it to a "picture" object?


Thanks a lot!