Hi Bryan,
Following is a part of the call stack. Before executing the code in the
overriden method of Component Changed event:
System.dll!System.ComponentModel.ReflectPropertyDescriptor.SetValue(object
component = {label1 [System.Windows.Forms.Label], Text: label1}, object value
= Yes) + 0x196 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry.SetPropertyValueCore(object
obj = {label1 [System.Windows.Forms.Label], Text: label1}, object value, bool
doUndo) + 0xd4 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry.SetPropertyValue(object
obj = {label1 [System.Windows.Forms.Label], Text: label1}, object objVal =
Yes, bool reset, string undoText) + 0x3b8 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry.PropertyValue.set(object value) + 0x1e bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitValue(System.Windows.Forms.PropertyGridInternal.GridEntry
ipeCur =
{System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry
RightToLeft}, object value = Yes) + 0xc7 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyGridView.CommitValue(object value) + 0x4e bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyGridView.DoubleClickRow(int row, bool toggleExpand, int type) + 0x144 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyGridView.OnGridEntryLabelDoubleClick(object s, System.EventArgs e) + 0x4f bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.RaiseEvent(object key, System.EventArgs e) + 0x40 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.OnLabelDoubleClick(System.EventArgs e) + 0x27 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.OnMouseClick(int
x, int y, int count, System.Windows.Forms.MouseButtons button) + 0x105 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyDescriptorGridEntry.OnMouseClick(int
x, int y, int count, System.Windows.Forms.MouseButtons button) + 0xe4 bytes
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.PropertyGridView.OnMouseDown(System.Windows.Forms.MouseEventArgs me) + 0x198 bytes
-------------------------------------------------------------------------------
ser said:
Hi Bryan,
Thanks a lot for your reply.
I had tried using DesignerTransaction. But it seems like there is an
internal commit that fires which leaves nothing to rollback or cancel. As i
am using desigherhost, the conponentchanged event seems to fire everytime a
property is changed. Is there a possiblility that this could lead to an
internal commit? If it is, then is there a way to defer componentchanged
event that fires on the propertychange?
Thanks again,
Ser