This code simply demonstrates how to ask the user for a colour, and then enumerate all the button controls within a panel setting their background colour.
Private Sub cmdChangeColour_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdChangeColour.Click
Try
Dim cDlg As New ColorDialog
Dim selColour As Color = Color.White
With cDlg
.ShowDialog()
.AnyColor = True
selColour = .Color
End With
For Each c As Control In pnlObjects.Controls
If TypeOf c Is Button Then
Dim b As Button = CType(c, Button)
With b
.BackColor = selColour
End With
End If
Next
Catch ex As Exception
Throw New Exception(ex.Message)
End Try
End Sub
End Class