Changedsoul
New member
- Joined
- Oct 25, 2006
- Messages
- 3
- Programming Experience
- Beginner
Hi, I have trid to look through MSDN and cant seem to find an answer. Hopefully someone here can help, and I know its an easy fix...at least I think it is, lol.
I created 42 Label controls during runtime in an array with this:
Dim label(42) As Label
I then ran it thru a For loop to create them and set properties:
For i = 1 To 42
label(i) = New Label
Panel1.Controls.Add(label(i))
label(i).AutoSize = False
label(i).TextAlign = ContentAlignment.MiddleCenter
label(i).Width = Width
label(i).Height = Height
Next
My problem now is that I want to add a Mouse over event and some other events to these lables after they are created. How can I do this, and could you please give a quick easy to see solution.
Thanks so Much.
I created 42 Label controls during runtime in an array with this:
Dim label(42) As Label
I then ran it thru a For loop to create them and set properties:
For i = 1 To 42
label(i) = New Label
Panel1.Controls.Add(label(i))
label(i).AutoSize = False
label(i).TextAlign = ContentAlignment.MiddleCenter
label(i).Width = Width
label(i).Height = Height
Next
My problem now is that I want to add a Mouse over event and some other events to these lables after they are created. How can I do this, and could you please give a quick easy to see solution.
Thanks so Much.