
This example shows how to change the text colour of a Form control through X++ code. The color will be changed in RED
TextControl.colorScheme(FormColorScheme::RGB);
TextControl.foregroundColor(WinAPI::RGB2int(255,0,0));
And this will be the result

If you want to convert to GREEN just modify like shown below
TextControl.colorScheme(FormColorScheme::RGB);
TextControl.foregroundColor(WinAPI::RGB2int(0,128,0));
