I want to have several labels in the form with the same font color as the heading in my group mailboxes, and in addition, I want these colors to change if the user applies a different theme on their system.
Can I do this without changing the default GroupBox header?
UPDATE:
I tried setting Label ForeColor to ActiveCaption, it looks fine for the default scheme (blue), but when I change the scheme to Olive Green, the labels of the labels and group fields do not match.
In addition, the usual behavior of a GroupBox is that setting FlatStyle to Standard sets the ForeColor header color, however, to create a new GroupBox and set ForeColor to ControlText you must first set it to something other than ControlText and then set it back. (If you do not follow what I mean, try it and see.)
source share