I've created a simple MDI application and have designated the Window menu to
keep track of the mdi children. When I first load an mdi child, it's caption
consists of "File: no file loaded" and this is what appears on the Window
menu.
Now, after the mdi child loads, I call a method to load a specifically named
file. At this point, the child changes it's caption to reflect the new file
name. Unfortunately, the Window menu does not update and remains fixed on
"File: no file loaded".
Is there some trick I'm missing to ensure that the Window menu gets updated
to reflect the new child window caption?
Incidentally, I've found that this problem does not happen in the
development environment, but always happens on the compiled application.
Opening a second child window usually sorts the problem out.
I've tried invalidating the Window menu item and tried refreshing the
MenuStrip, but without any success.
Thanks
Steve