Only by disabling. If enabled but locked it can be selected but not edited. Regarding CF and the enabled property, I think the way to interpret what's written there is to consider that a disabled control (at least a textbox) can have no useful format. Add a control, set it's bg color to yellow and you get yellow. Disable it and you get no format at all - unless you consider grey a format. You can disable, have a border and make it transparent to get a more normal look, as long as you're ok with the control seeming to have the same colour as the form background.
Last edited by Micron; 08-04-2021 at 07:22 PM.
Reason: added comment
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.