I have a MDI application that is producing some strange behaviour (bit of a 'once upon a time' here).
Basically, there is a navigator control (treeview on a form) which calls various forms. Behind everything there is a very complex framework. When you close a form, lots of work goes on in the background. If, while the form is closing, you click on the navigator control, an error is produced - here are the details.
The error is that a property is not found. On debugging, I find that it is within a WITH ThisForm ... ENDWITH command-set. I check the value of ThisForm in the debugger and it is correct but my gut feeling is that it is getting confused as to which form ThisForm relates to and is trying to find the property/method on the navigator control.
Any ideas? TIA,