J
jbhan
Hi,
I am trying to subclass a windows form to Outlook.
I have implemented an inspector wrapper which has a close
event handler for each inspector that is opened/ closed.
In the send event of the mail item depending on certain
conditions I cancel the send or not.
Now my problem is that when I DON'T cancel the send and
the inspector window closes, the subclassing events of
moved and sized get trigerred and my close event handler
for the inspector is ignored. As a result the cleaning up
is not happening.
Can anyone help me understand how the execution takes
places when both an event handler and a subclass event
are getting triggered? Does one take precedence over the
other and is there any way for me to disable subclassing
and let only the inspector close event handler execute.
Why is it the the close event handler is not getting
executed.
Any help and pointers will be really appreciated!
Thanks,
jbhan
I am trying to subclass a windows form to Outlook.
I have implemented an inspector wrapper which has a close
event handler for each inspector that is opened/ closed.
In the send event of the mail item depending on certain
conditions I cancel the send or not.
Now my problem is that when I DON'T cancel the send and
the inspector window closes, the subclassing events of
moved and sized get trigerred and my close event handler
for the inspector is ignored. As a result the cleaning up
is not happening.
Can anyone help me understand how the execution takes
places when both an event handler and a subclass event
are getting triggered? Does one take precedence over the
other and is there any way for me to disable subclassing
and let only the inspector close event handler execute.
Why is it the the close event handler is not getting
executed.
Any help and pointers will be really appreciated!
Thanks,
jbhan