The most effective way is to do exactly what the 'locked' or 'disabled' property is designed for. If you're not going to allow users to change the value, why set the focus to it? Instead, set the focus to a form button (typically the form close button is the first object in a form in the tab order) or some other control. Otherwise, you are going to have to write code for the OnChange event that resets the value to something that was there before, but there is no need for all that bother. Or you can accomplish the same with a GotFocus event - still unnecessary.
Last edited by Micron; 01-31-2016 at 09:30 PM.
Reason: add ref. to other control
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.