I want to know if there is an option to just change the group box text at the top left of the group box in a windows form and not any controls or labels located inside of the group box. I know that
groupbox.forecolor = color.blue
As long as I know, all the child controls will take the property of the parent.
You can store all your child colors and change them after you set the GroupBox's ForeColor. You can use a Dictionary with each pair of Control/Color.
Dim cColors As New Dictionary(Of Control, Color) For Each ctrl As Control In GroupBox1.Controls cColors.Add(ctrl, ctrl.ForeColor) Next GroupBox1.ForeColor = Color.Blue For Each ctrl As Control In GroupBox1.Controls If cColors.HasKey(ctrl) Then ctrl.ForeColor = cColors(ctrl) End If Next
You can put that in a method.
More information about the property at MSDN.