i'm using IComponentChangeService to catch events during designtime.
the event i catch is 'OnComponentAdded' from mybutton derived from
Forms.button.
the problem is now, that this event is fired for every myButton dropped on
the form. this means, if i have already 2 myButons on form an drop a third
button, the event is fireing thrice. for each component with the same type.
Also keep in mind with the 'IComponentChangeService' that you address the right INSTANCE,
because if you have two or more controls of the same type on a form, then it will loop through
all those controls (even if this service is called from within a single control)!!
I wish you the best, and let me know if you could manage your goal.
Kind regards,
Michael
Michael Maes wrote this in another VB newsgroup. it descripes my problem
very good. ;)
perhaps he is present here too.
but i have no idea how to implement it so that the service is only called
for the just dropped component.
best regards
Daniel