Label text Color in container control not changing


I have a window with a container control.
if I put a label in the cc and on open event of the label I change the text color, it does not work.
if I put the same label on the window, it works fine.

it’s strange, because it was working before and all I can think of it’s happening after the new OS X upgrade to macOsMonterey 12.2.1

any ideas ?

don’t worry, I fixed it