![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, Being fairly new to vb (dotnet) programming, I have the following question: I have 10 buttons from which I want to change background color, text etcetera. Instead of making 10 lines of programming code I want to do this by using an array. So what I tried is: Dim btnArray As String() = {"btnfirst", "btnsecond", "btnthird", etcetera} Dim S As String For Each S In btnArray S.BackColor = System.Drawing.Color.OrangeRed Next This doesn't work. Can anybody put me on the right track? Shouldn't be so hard I think. Any help appreciated. Regards, Jurgen |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |