Hi I added some controls(textbo xes) dynimically to a vb.net windows application form in the form load event.In My form I added a button statically.Now I would like to access my controls like the text entered in the dynimically added textboxes in button click event.How to do this?
How to access dynimically added controls
Collapse
X
-
Originally posted by sdandaHi I added some controls(textbo xes) dynimically to a vb.net windows application form in the form load event.In My form I added a button statically.Now I would like to access my controls like the text entered in the dynimically added textboxes in button click event.How to do this?
if typeof ctl = textbox then
'place code here
end if
next
Comment