Hi Lance,
Based on my understanding, you have two class A and B,(Are the class A and
B you mention is a generic class or a component?), in your code you will
new the two classes and set each of them to a propertygrid. Then if we
change one of the property of A, we will change the according property of B.
If I misunderstand your meaning, please feel free to tell me.
I think if the two classes A and B are generic class(a plain class inherits
from object), to achieve your aim, we have to define an event and raise the
event in every set methods of properties of A but you can write just one
event handler function in the class B.
If the two classes are component, we can use the
IComponentChangeService.ComponentChanged.
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemComponentModelDesignIComponentChangeServiceClassComponentAddedTop
ic.asp
Look for the title in the link below on how to use the
IComponentChangeService.ComponentChanged
53.4 How do I control the state of my custom verb in my designer?
http://www.syncfusion.com/FAQ/WinForms/FAQ_c80c.asp
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.