<?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 : Creating panel dynamically (&amp; OcxState)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Creating panel dynamically (&amp; OcxState)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 23:47:29 +0000</pubDate>
  <lastBuildDate>Fri, 08 Jun 2007 01:21:19 +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=7327</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[Creating panel dynamically (&amp; OcxState) : Hello, This line can be skipped....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7327&amp;PID=23514&amp;title=creating-panel-dynamically-ocxstate#23514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7327<br /><strong>Posted:</strong> 08 June 2007 at 1:21am<br /><br /><DIV>Hello,</DIV><DIV>This line can be skipped. Delete it.</DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 01:21:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7327&amp;PID=23514&amp;title=creating-panel-dynamically-ocxstate#23514</guid>
  </item> 
  <item>
   <title><![CDATA[Creating panel dynamically (&amp; OcxState) : I want to create Dockable Panels...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7327&amp;PID=23503&amp;title=creating-panel-dynamically-ocxstate#23503</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3051">Joe Calabrese</a><br /><strong>Subject:</strong> 7327<br /><strong>Posted:</strong> 07 June 2007 at 2:06pm<br /><br />I want to create Dockable Panels dynamically in code from a factory class, and then pass the objects to the UI when needed.&nbsp; So I tried copying some of the code that was normally generated when the control is dragged into a UI form.&nbsp; That approach isn't working yet.<DIV>&nbsp;</DIV><DIV><FONT color=#3300ff>Does anyone have experience creating Dockable panels completely in a separate .NET class, or perhaps have sample code?</FONT></DIV><DIV>&nbsp;</DIV><DIV>One thought I have is that there is an undocumented property in <FONT size=2>AxXtremeDockingPane.</FONT><FONT color=#2b91af size=2>AxDockingPane </FONT>called "<FONT size=2>OcxState" that shows up in a form when the control is dragged in.&nbsp; The normal code generated is this ...</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>DockingPaneManager.OcxState = ((System.Windows.Forms.</FONT><FONT color=#2b91af size=2>AxHost</FONT><FONT size=2>.</FONT><FONT color=#2b91af size=2>State</FONT><FONT size=2>)(resources.GetObject(</FONT><FONT color=#a31515 size=2>"DockingPaneManager.OcxState"</FONT><FONT size=2>)));</DIV></FONT><DIV>&nbsp;</DIV><DIV>I plugged this code into the separate class, but the debugger stops at this line, saying that an object reference is not set to an instance of an object.&nbsp; <FONT color=#0033cc></FONT></DIV><DIV><FONT color=#0033cc></FONT>&nbsp;</DIV><DIV><FONT color=#0033cc>I'm not sure what needs to be instantiated here.&nbsp; Any suggestions?</FONT></DIV>]]>
   </description>
   <pubDate>Thu, 07 Jun 2007 14:06:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7327&amp;PID=23503&amp;title=creating-panel-dynamically-ocxstate#23503</guid>
  </item> 
 </channel>
</rss>