Hey... I made my own database and imported that database to Visual Studio using the DataGridView control... Do the same and then use this...
Public Sub ExecuteColoring()
Try
Dim numberRows As Integer
numberRows = DataGridView1.Rows.Count - 2
Do Until numberRows = -1
Dim btnCurrent As Button
btnCurrent = Me.Controls.Item("Button" + (numberRows + 1).ToString)
If DataGridView1.Rows(numberRows).Cells(1).Value.ToString.ToLower = "false" Then
btnCurrent.BackColor = Color.Green
Else
btnCurrent.BackColor = Color.Red
End If
numberRows -= 1
Loop
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Also... Add this 'ExecuteColoring()' to the button press event so that whenever you press the button this thing will execute and change the color...
Here is a preview...
Preview - https://ibb.co/kaE60w
I think this is exactly what you wanted...
And if you're worrying about the database being visible... You can always hide it from the properties...
Hope I helped!