vb.net - Editing multiple labels with single code block -


i want edit label's text. have chain of labels named e1 , e2 , e3 , e4 ,e5 , on. want edit of them single chunk of code, this:

if ta.text = "whatever"  e(i).text = ta.text  endif 

in case "i" variable use select label edited. here sample of code :

form2.e(i).text = em.text form2.p(i).text = p.text form2.ns(i).title = t.text 

this code isn't working can me ?

try this

if ta.text = "whatever"    directcast(me.findcontrol("e" & i), label).text = ta.text endif 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -