For i = 1 To 10 'makes 10 button
Dim buttonbordnummer As Button
buttonbordnummer.Initialize("ButtonBordNummer")
PanelValgBord.AddView(buttonbordnummer, 10dip, 10dip + 45dip * i, 60dip, 45dip)
buttonbordnummer.Text=i
Next
end sub
,---------------------------------------------
Sub ChangeTheColor
for a = 1 to 10
'I know that's wrong - But I can't figure out how to select the right button
buttonbordnummer.Text="test"
next
end sub
I don't click on any of these 10 buttons - I just have to change fx the color on one or more these buttons.
So how do I change the properties on these buttons and how do I select the right one.