(btn0 to btn8 are buttons on my form)
dim buttons(8) as button button(0) = btn0 button(1) = btn1 button(2) = btn2 button(3) = btn3 button(4) = btn4 button(5) = btn5 button(6) = btn6 button(7) = btn7 button(8) = btn8
with something like this:
for i as integer = 0 to 8 button(i) = btni 'maybe "btn & i" ? next
this could get tedious if there were a lot of items to be assigned. i want to do this so that it would be easier to sort through them because its easy to use a for loop and put the counter as the element number.
i am using vb .net pro 2008 at home and pro 2003 at school for the class I'm taking.


Sign In
Create Account

Back to top









