>>How to prevent entering new values ?
>>Which is the best way to mark list box read only from VFP code ?
>
>If my combo is read-only, then I don't want the user to be able to show the list of values, either. Therefore, something like this in the ReadOnly_ASSIGN method works for me:
>
>
>LPARAMETERS lReadOnly
>
>THIS.Enabled = !lReadOnly
>IF lReadOnly
> THIS.DisabledForeColor = THIS.ForeColor
>ELSE
> THIS.ResetToDefault("DisabledForeColor")
>ENDIF
>
>THIS.ReadOnly = m.lReadOnly
>
Combo Box native readoly property allows to use Tab key to move to it,
but your code disables use of Tab key.
How to enable Tab key to move to read-only listbox ?
Andrus