I created a usercontrol that displays an image an properties of a specific product.
After loading product values into an array, I would like to use the array to create instances of the usercontrol on the form, with the array values assinging the usercontrol's properties.
I created a function (i found a referance online) with the following code:
Public Sub CreateControl()
Dim userControl As UserControl
userControl = New NamesControl.ProductImage
I get the following error:
Property access must assign to the property or use its value.
This is my first userControl, so i could've done somethign wrong while creating it, but my hope was that i'd be able to load the userControl and set it's properties in the above function.
This may be vague - but, any ideas what i'm doing wrong?
Thanks for your help!