I have read a few other posts here regarding similar problems, particularly those where Boyd provides some good feedback. However, the problem persists, so...
Our app is using a pane configuration similar Microsoft Outlook 2003. A shortcut bar to the left (Pane A), a list pane to the right (Pane B...a codejock report control) with a "reading" pane beneath the list pane (Pane C).
The shortcut bar provides users with four alternative "views". Each time the user changes the view, Pane A is switched to a different PictureBox control containing different TaskPanel controls; Pane B generally continues to point to the same PictureBox control containing the codejock report control; and Pane C is ALWAYS switched to a different PictureBox control containing numerous standard windows controls.
To make matters more complicated, a fourth pane (Pane D) is generally located beneath Pane C and points to the handle of a PictureBox. This PictureBox control also has three additional PictureBox controls, each holding a CommandBar control. The reason I am doing it this way is so that I can use the PictureBox controls to place the left edge of the CommandBar control beyond the left edge of the Pane D picturebox control so as to hide the "space" that seems to show up to the left of codejock toolbars.
Obviously, if you've read this far, you would understand that I'm having some serious focus problems. I can't get focus to move from one pane to the next for the life of me. It seems particularly difficult, if not impossible, to get focus to move off of the pane containing the codejock report control.
Should all picturebox controls used have their "TabStop" property set to False at design time? Should all picture box controls have their "Visible" property set to False at design time? How should the same properties for the controls contained within each picturebox control be set at design time? Each time the user switches "Views", should I programatically go through and change the Visible property on the various picturebox controls no longer in use to False?
Any help trying to troubleshoot this focus problem is appreciated. Thanks!
|