I need to set an internal value when a user clicks one of the 'Layout' items of the built-in WindowList tool.(Cascade, Tile, etc.)
Another post said that no events were raised when these menus were clicked (at least it said none 'before' ... but I dont see any 'after' either)
I also don't see any events firing in the MDI Form itself when the layout changes. (I can't beleive there is no event - or even any way to determine the current layour that I can find.)
The other post said that the solution was to override the MdiLayout() method since clicking these menus simply calls the form's MdiLayout method.
However that appears to be wrong.I overrode the method and it is never called - the form still changes layout but my breakpoint never fires (and the variable never gets set.)
What could I have done wrong?(The compiler recognizes my MdiLayout method as a valid Overide.)
Note that I am using NetAdvantage 2008 Vol 1 not 2009 Vol 1 so maybe you changed the logic since then?
Thanks
Mike
I just realized that I declared my method as Overloads rather than Overrides.
I dont know why it accepted an Overloads function with the same signature as the base class method, but it did. (It simply doesn't use it.)
LayoutMdi() is not an Override able method so that solution will not work.
Any other way to catch this event, or detect the change in layout?