I am using this code:<br>
Set Object1(a) = Controls.Add("VB.label", b, Form1)<br>
But I want to click on a label and trip the on click event.<br>
Since there is no label in design view how do I know which label I clicked on and do something.<br>
<br>
I did this a different way before where I had a label array such as label1(0) so it was the first item in an array.<br>
then I could add more labels to that array using code somehow but I forgot how. <br>
Does any one know how to do that.<br>
Set Object1(a) = Controls.Add("VB.label", b, Form1)<br>
But I want to click on a label and trip the on click event.<br>
Since there is no label in design view how do I know which label I clicked on and do something.<br>
<br>
I did this a different way before where I had a label array such as label1(0) so it was the first item in an array.<br>
then I could add more labels to that array using code somehow but I forgot how. <br>
Does any one know how to do that.<br>