Hi guys,
thanks for your answers, they led me quickly to the solution (ok, i have
not been working for a while on it).
One needs simply to invoke the "OnComponentChanging" and the
"OnComponentChanged" method provided by the IComponentChangeService.
So:
***
IComponentChangeService c =
(IComponentChangeService)GetService(typeof(IComponentChangeService));
c.OnComponentChanging(yourComponent, null);
yourComponent.someProperty = false;
c.OnComponentChanged(yourComponent, null, null, null);
***
This will notify the designer of the change made on yourComponent.
Have fun.
Montezuma
jokiz ha scritto:
> the designer was not notified of the changes made, probably your
> properties are dependent on others and you changed it through code
> without notifying the designer, christian is correct. since the
> designer was notifies of the size change (on resize), he tries to
> serialize the changes. designer does not serialize code when it does
> not sense a change.