Hi Everyone,

I'd like to know how to create an array of textboxes or labels at run-time. My goal is to draw circles on a form and place a label or textbox near it to name the circles. And because the amount of circles is unknown (to the program), i'll have to create the same amount of labels. But when i try to declare them, i get runtime error 91: "object variable or with block variable not set"

My code is as follows:

dim labelarray(0 to 10) as textbox
labelarray(0).text="hello"

This causes the error.

Can anyone help me please?

lavschie