New instance of mdi child form being opened
Posted on 2008-06-24
I have a mdi app the opens a child form when the app loads. I have a Public property on the child form that I set from the parent form. When the app is started the property is initally set from the formload event of the child form. Clicking the menu on the parent form sets the property to the desired value.
When I first click the menu after opening the app a new instance of the form is created instead of changing the property on the existing child form. After the new instance is created clicking the menu updates the property correctly and everything works fine. It's only the first time the menu is clicked after opening the form that the new instance is created. What am I doing wrong.