Loop through textboxes in vb.net -
i remember in vb6 able create array of textboxes.
textbox1(0), textbox1(1) ..... ,
but in vb.net can't create array ? if have code . possible set loop ?
textbox1.text = "" textbox2.text = "" textbox3.text = "" textbox4.text = "" textbox5.text = "" textbox6.text = "" textbox7.text = "" textbox8.text = "" textbox9.text = "" textbox10.text = "" textbox11.text = "" textbox12.text = "" textbox13.text = "" textbox14.text = "" textbox15.text = ""
if textbox controls on main form, can loop through them:
for each tb textbox in me.controls.oftype(of textbox)() tb.text = string.empty next
if in panel, replace me
keyword name of panel.
Comments
Post a Comment