2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Luc001
0

Hi,

You can try something like this:

For Each cnt As Control In Me.Controls
            If TypeOf cnt Is GroupBox Then
                For Each child In cnt.Controls
                    If TypeOf child Is Button Then
                        CType(child, Button).BackColor = Color.Red
                    End If
                Next
            End If
        Next
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.