Is there a way to set a control on a system form to permanently disabled?
In Edit Mode, I set the Code field to disabled on the Business Partner Master Data form (.Enabled = false) which disables the field successfully, but as soon as I start typing in any other field on the form, the Code field is immediately reset to enabled.
I can't use the SetAutoManagedAttribute method to change the automatic behaviour of this field because it is not a user-defined control.
The only solution I have to render the field as read-only is to intercept the KeyDown BeforeAction event and cancel it - but this is not a good solution, because it does not provide any visual indication that the field is disabled.
Is there any way to correctly disable system controls on a system form?
Any help would be much appreciated.
Regards,
David