I want to create labels dynamiclly (at run time) when user clicks one its click events will excute

I want like this :


for i as integer=1 to 10 step 1
    '' here label creation
end for

Thanks for who can help me ...
:icon_wink:

for i as integer=1 to 10 step 1
    Dim lab as new Label
    lab.Text="Some text"
    me.Controls.Add(lab)
end for

Don't forget to set .Left and .Top of your label which you add dynamically so u can see it at desired position on form.

adatapost ... mihird
Thanks very much for your replaies

I tried that and sucessed

Don't forget to mark this thread as "solved" if your issue is resolved.