<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Forms Lost after loadstate?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Forms Lost after loadstate?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 09:24:16 +0000</pubDate>
  <lastBuildDate>Fri, 12 Aug 2011 03:47:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=18816</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Forms Lost after loadstate? : my mistake thought Id post just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18816&amp;PID=65889&amp;title=forms-lost-after-loadstate#65889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6775">stuc</a><br /><strong>Subject:</strong> 18816<br /><strong>Posted:</strong> 12 August 2011 at 3:47am<br /><br /><br>&#091;SOLVED&#093;&nbsp; my mistake thought Id post just in case others find the same.<br><br>Incorrect Code<br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub DockingPaneManager_AttachPane(ByVal Item As XtremeDockingPane.IPane)<br><br>'If Form not create yet.<br>&nbsp;&nbsp;&nbsp; If arrPanes(Item.id) Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set arrPanes(Item.id) = frmpandid<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.handle = arrPanes(Item.id).hWnd<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br><br>As you can see I was assigning the Pane handle&nbsp; (item.handle) only when the array was not populated.&nbsp; On a loadstate the panes must be being deleted and recreated as it looses the handle.<br><br>Corrected code<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub DockingPaneManager_AttachPane(ByVal Item As XtremeDockingPane.IPane)<br><br>'If Form not create yet.<br>&nbsp;&nbsp;&nbsp; If arrPanes(Item.id) Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set arrPanes(Item.id) = frmpandid<br>&nbsp;&nbsp;&nbsp; End If<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.handle = arrPanes(Item.id).hWnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br><br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Fri, 12 Aug 2011 03:47:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18816&amp;PID=65889&amp;title=forms-lost-after-loadstate#65889</guid>
  </item> 
  <item>
   <title><![CDATA[Forms Lost after loadstate? : I need a pointer in the right...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18816&amp;PID=65878&amp;title=forms-lost-after-loadstate#65878</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6775">stuc</a><br /><strong>Subject:</strong> 18816<br /><strong>Posted:</strong> 11 August 2011 at 11:17am<br /><br /><br><br>I need a pointer in the right direction if I could.<br><br>What would cause the panes to loose their forms?<br><br>i.e. After a loadstate, the panes are correctly in their positions its just they are all devoid of their forms<br><br>I used the samples for my template and cant for the life of me see why this would happen? - I cant get it to happen with the example code.&nbsp; Im searching line by line to see what differences I have made.&nbsp; <br><br>A pointer in the general area would be nice<br>]]>
   </description>
   <pubDate>Thu, 11 Aug 2011 11:17:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18816&amp;PID=65878&amp;title=forms-lost-after-loadstate#65878</guid>
  </item> 
 </channel>
</rss>