J
Jeff
....another beginner question - using visual web 2005 with VB
I have 20 labels - lbl1 through lbl20
I have a listbox containing values 1 through 20
I need to make label 1 through the selected value of the listbox visible, but the rest of the labels invisible
I'm assuming that the best way to do this is with 2 loops in the listbox click event something like:
for i = 1 to listbox1.selectedvalue
lbl i .visible = true
next
for i = listbox1.selectedvalue+1 to 20
lbl i.visible = false
next
....but I'm not sure how to actually code this.
Can someone point me in the right direction?
Thanks in advance
Jeff
I have 20 labels - lbl1 through lbl20
I have a listbox containing values 1 through 20
I need to make label 1 through the selected value of the listbox visible, but the rest of the labels invisible
I'm assuming that the best way to do this is with 2 loops in the listbox click event something like:
for i = 1 to listbox1.selectedvalue
lbl i .visible = true
next
for i = listbox1.selectedvalue+1 to 20
lbl i.visible = false
next
....but I'm not sure how to actually code this.
Can someone point me in the right direction?
Thanks in advance
Jeff