falled
Member
- Joined
- Sep 16, 2006
- Messages
- 20
- Programming Experience
- Beginner
Hi every One!
I've created controls on my form dinamycally, so they ara called btn1, btn2,btn3, etc...
If I create them with the wizard I only must put the name and I have the access but how can I do it to access to the dinamically created?
To access them I use a For loop
I'd like to find a instruction to access them directly
me.("btn1") for example.
does exists?
Thank you all and sorry for my bad writting
I've created controls on my form dinamycally, so they ara called btn1, btn2,btn3, etc...
If I create them with the wizard I only must put the name and I have the access but how can I do it to access to the dinamically created?
To access them I use a For loop
VB.NET:
For m=0 to Me.controls.count step 1
if (Me.controls.item(m).Name = "btn" + m) then
...
me.("btn1") for example.
does exists?
Thank you all and sorry for my bad writting
Last edited by a moderator: