One of my customer asked how he could hide and unhide a band on a PowerToolbar on the application frame from a PowerToolbar button on his MDI window.
In order to do this you need to set up the MDI client template on the MDI window. PowerToolbar uses a global instance of the POToolbarGlobalClass to control the appframe toolbar from other threads. You can take a look at some of the methods in the online documentation.
The code you need to toggle the visibility of a band looks like this:
If AppToolbar.GetBandVisible(TB1_TestWindowBand) = True AppToolbar.SetBandVisible(TB1_TestWindowBand, False) Else AppToolbar.SetBandVisible(TB1_TestWindowBand, True) End
That is pretty much all there is to it. This is exactly the same code as you would use on the appframe itself.
Arnor Baldvinsson