I've been using pointers to access my UserControl's properties:
Using this:
Code:
Call vbaObjSetAddref(UC_Object, ObjPtr(Me))
Allows for this:
Code:
UC_Object.ScaleWidth = 100
But if I have say a PictureBox on the the UserControl, Picture1, I would think this should work:
Code:
UC_Object.Picture1.ScaleWidth = 100
But it doesn't work. Instead I get the following error:
Code:
Run-Time error '91':
Object variable or With block variable not set
Shouldn't this work - or is this just not possible?
Thanks.