Hello Peter,
If you want to hard code it in the field init() event.
MySelf..BrushColor = LightYellow //Background colour
MySelf..Color = black // or default for the text colour
I have a process to enable users to create background and text colours for a variety of field attributes and these are set by running a global procedure in the init event of almost every field in my windows. The global process also writes the field name into an array that is used to test the data in the field using another global procedure in the field exit event.
The ..BrushColor has been replaced by ..BackgroundColor but old habits die hard.
Regards
Al