Discussion:
IComponentChangeService
(too old to reply)
Kelly
2008-07-29 18:00:01 UTC
Permalink
When someone is designing an ASP page in VS 08 I would like to be able to
tell when they have deleted a component. I have wired into the event
ComponentRemoved, but it also appears to fire when the Designer is exiting.
Is there a way to tell when the Designer is exiting versus someone deleting a
component. Or should I be using a different way to monitor this? Thanks.
Aflava
2008-09-19 18:52:56 UTC
Permalink
Hi,

I add the same issue and I didn't found any "clean workaround".
What I've done is:
- create your own delete MenuCommand by playing with IMenuCommandService
- In your own menucommand set a flag telling that this is a real deletion
- call the legacy delete command

Hope this Help


Aflava
http://www.aflava.com
Post by Kelly
When someone is designing an ASP page in VS 08 I would like to be able to
tell when they have deleted a component. I have wired into the event
ComponentRemoved, but it also appears to fire when the Designer is exiting.
Is there a way to tell when the Designer is exiting versus someone deleting a
component. Or should I be using a different way to monitor this? Thanks.
Kelly
2008-09-22 14:23:01 UTC
Permalink
Thank you for your great idea. And it confirms that there doesn't seem to be
a "clean" way to accomplish this.
Post by Aflava
Hi,
I add the same issue and I didn't found any "clean workaround".
- create your own delete MenuCommand by playing with IMenuCommandService
- In your own menucommand set a flag telling that this is a real deletion
- call the legacy delete command
Hope this Help
Aflava
http://www.aflava.com
Post by Kelly
When someone is designing an ASP page in VS 08 I would like to be able to
tell when they have deleted a component. I have wired into the event
ComponentRemoved, but it also appears to fire when the Designer is exiting.
Is there a way to tell when the Designer is exiting versus someone deleting a
component. Or should I be using a different way to monitor this? Thanks.
Loading...