[SOLVED] LoadState not working |
Post Reply |
Author | |
HarleyHammond
Newbie Joined: 19 October 2011 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
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. |
|
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 |