Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - SOLVED: Method 'Select' of object 'IPane' failed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Method 'Select' of object 'IPane' failed

 Post Reply Post Reply
Author
Message
JasonG View Drop Down
Groupie
Groupie


Joined: 07 July 2008
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote JasonG Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Method 'Select' of object 'IPane' failed
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2008 at 2:13am
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
Back to Top
JasonG View Drop Down
Groupie
Groupie


Joined: 07 July 2008
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote JasonG Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2008 at 8:36am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.