Hi Michael,
>Well, it works when the form is initialized, but when I change the memvar from false to true, a Refresh() doesn't seem to work. It seems that the enabled property is not re-calculated when the objects are refreshed.
You can add a property lEnabled and assign it an expression, like a variable name. In the Refresh method of your base class you could use code like this:
If not Empty(This.lEnabled)
This.Enabled = Evaluate(This.lEnabled)
Endif
Christof
--
Christof