Search code examples
c#.netwinformsuser-controls

Refreshing a user control in design time depending on a property


I have a custom control with a bool property. In the designer, I drag the user control to a form and I change this property to "false", which is supposed to hide a child control.

It is indeed hiding it in runtime, but not in design time. How could I "refresh" my user control in design time to reflect the changes to this property?


Solution

  • I'm afraid I didn't ask my question correctly - I was inheriting from a rather complex third-party control and I wanted to see a change in design time.

    I ended up overriding OnCreateControl. I appreciate your help nevertheless.