Parse through all the Controls in the designer and call TypeDescriptor.Refresh() on them.
// From inside your custom IDesigner implementation:
private void UpdateExtendedProperties()
{
IDesignerHost idh = this.GetService(typeof(IDesignerHost)) as IDesignerHost;
foreach (Component comp in idh.Container.Components)
{
// Ignoring the Form
if ((comp is Control) && ((comp is Form) == false))
{
Control ctrl = comp as Control;
TypeDescriptor.Refresh(ctrl);
}
}
}
Share with