Print Page | Close Window

[SOLVED] LoadState not working

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=19143
Printed Date: 29 April 2024 at 12:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] LoadState not working
Posted By: HarleyHammond
Subject: [SOLVED] LoadState not working
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net