I want to cycle through a arraylist and for each item in that list
I need to create a
picturebox, label1, label2
each with specific name attributes
when I click on the picturebox (maybe I do it with buttons) a list of actions need to be done for that element. I think this is best done by checking the name of the picturebox/button that is clicked.
But I don't have any idea how to create the 'dynamic' form.
My guess will be to
create the box hard coded, set the attributes, set the position (best with a integer variable I think so I can raise it in the loop) and set visible.
but if this is the best way, I really don't have any idea how to define the button that's clicked and go to the correct function.
(don't know if i'm clear on what I want, but any help would be appreciated)
I need to create a
picturebox, label1, label2
each with specific name attributes
when I click on the picturebox (maybe I do it with buttons) a list of actions need to be done for that element. I think this is best done by checking the name of the picturebox/button that is clicked.
But I don't have any idea how to create the 'dynamic' form.
My guess will be to
create the box hard coded, set the attributes, set the position (best with a integer variable I think so I can raise it in the loop) and set visible.
but if this is the best way, I really don't have any idea how to define the button that's clicked and go to the correct function.
(don't know if i'm clear on what I want, but any help would be appreciated)
Last edited: