question about ComponentAdded event -
10-25-2007
, 02:17 AM
find a question as blew:
Suppose that you want to do an add-in to change some properties of a control
when is added to a form. It seems that the proper event is
IComponentChangeService.ComponentAdded, but it happens that the control is
not sited yet at that moment and therefore properties such Text or Size are
overwritten later when the control is sited (it works fine with other
properties, however).
So, it seems that a new event in the component model is needed or maybe the
ComponentAdded event should be fired when the control is actually sited on
the form. Is there a current workaround for this issue?
I want to ask this question,too!
thanks a lot :-) |