E
esteban40oz
I have 9 buttons on my form. Button1, Button2, Button3, etc
I want to create an array to access the value of each of them.
Dim buttonArray() As Button = {Button1, Button2, Button3, Button4,
button5, Button6, Button7, Button8, Button9}
Now, I awnt to create 3 buttons using the array.
Dim b1 As Button = New Button
b1 = buttonArray(0)
Dim b2 As Button = New Button
b2 = buttonArray(1)
Dim b3 As Button = New Button
b3 = buttonArray(2)
When I try to access b1.Text I get an error 'error: cannot obtain
value' from the vs debugger.
Any ideas on what I might need to do to gain access to this value.
I want to create an array to access the value of each of them.
Dim buttonArray() As Button = {Button1, Button2, Button3, Button4,
button5, Button6, Button7, Button8, Button9}
Now, I awnt to create 3 buttons using the array.
Dim b1 As Button = New Button
b1 = buttonArray(0)
Dim b2 As Button = New Button
b2 = buttonArray(1)
Dim b3 As Button = New Button
b3 = buttonArray(2)
When I try to access b1.Text I get an error 'error: cannot obtain
value' from the vs debugger.
Any ideas on what I might need to do to gain access to this value.