Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - [SOLVED] LoadState not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] LoadState not working

 Post Reply Post Reply
Author
Message
HarleyHammond View Drop Down
Newbie
Newbie


Joined: 19 October 2011
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote HarleyHammond Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] LoadState not working
    Posted: 04 November 2011 at 7:59am
I submitted this to customer support 2 days ago and have not gotten a response, so I guess I will ask here:

Has anyone seen an issue with LoadState and LoadStateFromString not working?

Both types of SaveState seem to work fine, I see the registry change or get an xml string. The LoadState works perfectly from the codejock supplied example application, but when I call LoadState from my app, it just does nothing. No change, no exception, nothing.

I am certain the registry location is the same, I copy/pasted the lines. I have tried dragging a bunch of stuff from my app into the demo, but could not break it.

This is on VS2010, C#, on a WinForm.

Any ideas? Has anyone else seen this and found a solution?

Without that feature, the Docking Pane is sort of useless.

Thank you!

------------------------------------------------------------------------------------------------------------------------

SOLUTION: When you call DockingPanel.CreatePane, the first parameter is a user-designated unique ID for that pane. If you use an ID of "0", the LoadState will never work. Start with 1.
It took me over 6 hours to find that one. Cry

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.141 seconds.