L
lisa
I have a custom CollectionEditor. It's not very customized, and is
almost the same as any standard CollectionEditor.
A problem I have, which isn't really a problem, but is irksome, is that
when I go into the CollectionEditor and click on the Remove button, the
control in design mode doesn't update until I close the CollectionForm.
I figure this is wrong, because when I click on the Add button, it
*does* update. And as I said, it's not that big of a deal, because it
does update when I close the CollectionForm.
But I'd like to trap the button click event, so that I can at least see
what's going on. Maybe there *is* a problem, and I just haven't
noticed it yet.
I used the Reflector and found out that there's a private class called
CollectionEditorCollectionForm which has this method:
Private Sub RemoveButton_click(ByVal sender As Object, ByVal e As
EventArgs)
That's nice and all, but it doesn't seem to be accessible to me. I'd
have to create an entire CollectionForm from scratch, I think, and it
doesn't seem worth the effort.
Does anyone know how I can accomplish this?
Thanks,
Lisa
almost the same as any standard CollectionEditor.
A problem I have, which isn't really a problem, but is irksome, is that
when I go into the CollectionEditor and click on the Remove button, the
control in design mode doesn't update until I close the CollectionForm.
I figure this is wrong, because when I click on the Add button, it
*does* update. And as I said, it's not that big of a deal, because it
does update when I close the CollectionForm.
But I'd like to trap the button click event, so that I can at least see
what's going on. Maybe there *is* a problem, and I just haven't
noticed it yet.
I used the Reflector and found out that there's a private class called
CollectionEditorCollectionForm which has this method:
Private Sub RemoveButton_click(ByVal sender As Object, ByVal e As
EventArgs)
That's nice and all, but it doesn't seem to be accessible to me. I'd
have to create an entire CollectionForm from scratch, I think, and it
doesn't seem worth the effort.
Does anyone know how I can accomplish this?
Thanks,
Lisa