SOLVED: Method 'Select' of object 'IPane' failed |
Post Reply |
Author | |
JasonG
Groupie Joined: 07 July 2008 Status: Offline Points: 76 |
Post Options
Thanks(0)
Posted: 30 July 2008 at 9:28am |
I am using the following code to force a pane to be visible once a CommandBarButton is clicked... This button may be hit throughout the use of the application, but it is always after the pane has fully loaded.
UserPane.Hidden = False UserPane.Select This Code Worked fine up until recently. When I got to thinking about what was changed, I realized that I recently added the SaveState/LoadState code for the DockingPaneManager. DockingPaneManager.LoadState RegKey, "ObjectStates", "DockingPaneManager" Now, The SaveState/LoadState work properly, but when the first block of code is called, I get the following error on the UserPane.Select line... Method 'Select' of object 'IPane' failed If I REM out that line and let the code run, nothing happens, and if I hit the CommandBarButton again, I get this error on the UserPane.Hidden line... Method 'Hidden' of object 'IPane' failed If I REM out the DockingPaneManager.LoadState Code, All operates as normal... |
|
Product: Xtreme SuitePro (ActiveX) 12.0.1
Platform: Windows Vista/XP Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, after you load state your UserPane variable is not valid anymore. use FindPane method to find actual pane.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
JasonG
Groupie Joined: 07 July 2008 Status: Offline Points: 76 |
Post Options
Thanks(0)
|
Perfect. I re-assigned my UserPane variable after the LoadLayout and it works great. Thanks.
|
|
Product: Xtreme SuitePro (ActiveX) 12.0.1
Platform: Windows Vista/XP Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |