Repaint/Rerender Control in IDE
I have a custom phone control consisting of 3 textboxes.
Two of the textboxes are created in the constructor and the third textbox is optional, depending on whether the developer wants the control to handle international numbers.
There is a boolean property (ShowCountryCode), which determines whether the country code textbox will be displayed.
The problem I am having with this is when the control is placed on the form it shows the two default textboxes, the ShowCountryCode property is set to False by default, but if the developer sets the ShowCountryCode property to True. I want the control to re-render/repaint itself in the IDE to show three textboxes instead of the default two.
It renders just fine at run-time, but not in design time in the IDE.
Anyone know how to repaint/re-render a control in the IDE, based on a properties setting???