how to draw differently a containercontrol that is disabled ?

Hi group,

I want to draw the interior of a containercontrol differently when it’s enabled or disabled.
or it seems I don’t have any paint or refresh event once the containercontrol has been disabled
so my “draw different” does not happens.
Is there a way to do this ?


I worked around this by adding a canvas to the container control and “moving” it to the back. Then you can accomplish this.