G
Guest
I have a C# app in VS2005. the form has a datetime picker with valuechanged
event. When the form closes, the valuechanged event is fired and an error is
thrown in its code when it tries to get a selected value from a combobox
which apparently doesn't exist anymore. I get around the problem with some
error handling, but what I really want to know, is there a way to cancel the
control event handlers on a form when the form is closing?
event. When the form closes, the valuechanged event is fired and an error is
thrown in its code when it tries to get a selected value from a combobox
which apparently doesn't exist anymore. I get around the problem with some
error handling, but what I really want to know, is there a way to cancel the
control event handlers on a form when the form is closing?