<?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 : MDI Child with DockingPane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : MDI Child with DockingPane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 22:20:47 +0000</pubDate>
  <lastBuildDate>Thu, 06 Apr 2006 10:00:47 +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=3941</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[MDI Child with DockingPane : Ok, lets try again: The problem: When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=12012&amp;title=mdi-child-with-dockingpane#12012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3941<br /><strong>Posted:</strong> 06 April 2006 at 10:00am<br /><br /><P>Ok, lets try again:</P><P><U>The problem</U>:</P><P>When you call <FONT size=2>frmPluginForm.MdiParent = MDIForm</FONT></P><P><FONT size=2>.NET destroy frame and create again with WS_EX_MDICHILD style, so all commandbarrs and dockingpanes objects destroyed. Unfortunatelly from ActiveX code We can't catch this event end recreate them.</FONT></P><P><FONT size=2><U>The solution</U></FONT></P><P><FONT size=2>Solution is to create DockingPane and CommandBars after you call it</FONT></P><P><FONT size=2><U>Sample</U></FONT></P><P><FONT size=2>create InitBars method and call it after you change frame style:</FONT></P><P><FONT size=2></FONT>&nbsp;</P><FONT size=2><P></FONT><FONT color=#0000ff size=2>Public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</FONT><FONT size=2> InitBars()</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1 = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> AxXtremeDockingPane.AxDockingPane</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1 = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> AxXtremeCommandBars.AxCommandBars</P><P></FONT><FONT color=#0000ff size=2>CType</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1, System.ComponentModel.ISupportInitialize).BeginInit()</P><P></FONT><FONT color=#0000ff size=2>CType</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1, System.ComponentModel.ISupportInitialize).BeginInit()</P><P></FONT><FONT color=#008000 size=2>'</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>'AxDockingPane1</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>'</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1.Enabled = </FONT><FONT color=#0000ff size=2>True</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1.Location = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> System.Drawing.Point(24, 32)</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1.Name = "AxDockingPane1"</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1.Size = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> System.Drawing.Size(17, 16)</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1.TabIndex = 0</P><P></FONT><FONT color=#008000 size=2>'</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>'AxCommandBars1</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>'</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1.Enabled = </FONT><FONT color=#0000ff size=2>True</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1.Location = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> System.Drawing.Point(8, 56)</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1.Name = "AxCommandBars1"</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1.Size = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> System.Drawing.Size(24, 24)</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1.TabIndex = 1</P><P>&nbsp;</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.Controls.Add(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1)</P><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.Controls.Add(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1)</P><P></FONT><FONT color=#0000ff size=2>CType</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxDockingPane1, System.ComponentModel.ISupportInitialize).EndInit()</P><P></FONT><FONT color=#0000ff size=2>CType</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1, System.ComponentModel.ISupportInitialize).EndInit()</P><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> paneA </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> Pane = AxDockingPane1.CreatePane(1, 200, 120, DockingDirection.DockLeftOf, </FONT><FONT color=#0000ff size=2>Nothing</FONT><FONT size=2>)</P><P>paneA.Title = "Pane A"</P><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> paneB </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> Pane = AxDockingPane1.CreatePane(2, 200, 120, DockingDirection.DockRightOf, paneA)</P><P>paneB.Title = "Pane B"</P><P></FONT><FONT color=#008000 size=2>'AxDockingPane1.Options.HideClient = True</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>'AxDockingPane1.Options.ShowCaption = False</P></FONT><FONT size=2><P>AxDockingPane1.Options.ThemedFloatingFrames = </FONT><FONT color=#0000ff size=2>True</P></FONT><FONT size=2><P>AxDockingPane1.Options.LunaColors = </FONT><FONT color=#0000ff size=2>False</P></FONT><FONT size=2><P><strong>AxDockingPane1.SetCommandBars(</strong></FONT><strong><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.AxCommandBars1.GetDispatch)</P></FONT></strong><FONT size=2><P> AxCommandBars1.ActiveMenuBar.Controls.Add(XTPControlType.xtp ControlButton, 10, "File")</P><P></FONT><FONT color=#0000ff size=2>End</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</P></FONT><P><FONT size=2></FONT>&nbsp;</P><FONT size=2><FONT color=#0000ff size=2><P>Public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</FONT><FONT size=2> ShowPluginForm(</FONT><FONT color=#0000ff size=2>ByVal</FONT><FONT size=2> MDIForm </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> System.Windows.Forms.Form) </FONT><FONT color=#0000ff size=2>Implements</FONT><FONT size=2> FrameNET.Interface.IPlugin.ShowPluginForm</P><P></FONT><FONT color=#0000ff size=2>Try</P></FONT><FONT size=2><P>frmPluginForm = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> frmchild</P><P>frmPluginForm.MdiParent = MDIForm</P><P>frmPluginForm.Show()</P><P><strong>frmPluginForm.InitBars()</strong></P><P></FONT><FONT color=#0000ff size=2>Catch</FONT><FONT size=2> err </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> Exception</P><P>MsgBox("Error in ShowPlugin." &amp; vbCrLf &amp; err.Message &amp; vbCrLf &amp; err.Source, MsgBoxStyle.Critical, "Security Plugin")</P><P></FONT><FONT color=#0000ff size=2>End</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Try</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>End</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Sub</FONT></P><P><FONT color=#0000ff size=2></FONT>&nbsp;</P><P><FONT color=#0000ff size=2>&nbsp;</P></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 06 Apr 2006 10:00:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=12012&amp;title=mdi-child-with-dockingpane#12012</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Child with DockingPane : I&amp;#039;m having somewhat of the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=12007&amp;title=mdi-child-with-dockingpane#12007</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1907">Countryboy</a><br /><strong>Subject:</strong> 3941<br /><strong>Posted:</strong> 06 April 2006 at 9:00am<br /><br /><P>I'm having somewhat of the same type of&nbsp;problem in VB.Net.&nbsp; I tried your fix and either I didn't implement it correctly or it doesn't fix my problem.&nbsp; I have attached a sample of my project.&nbsp; Any help you can provide would be greatly appreciated.</P><P><A href="https://forum.codejock.com/uploads/Countryboy/2006-04-06_085910_Sample_Frame.zip" target="_blank">2006-04-06_085910_Sample_Frame.zip</A></P><P>Thanks</P>]]>
   </description>
   <pubDate>Thu, 06 Apr 2006 09:00:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=12007&amp;title=mdi-child-with-dockingpane#12007</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Child with DockingPane : Works. Thanks.  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=11968&amp;title=mdi-child-with-dockingpane#11968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1894">helios456</a><br /><strong>Subject:</strong> 3941<br /><strong>Posted:</strong> 04 April 2006 at 7:33pm<br /><br />Works. Thanks.]]>
   </description>
   <pubDate>Tue, 04 Apr 2006 19:33:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=11968&amp;title=mdi-child-with-dockingpane#11968</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Child with DockingPane : For MDI child you must move all...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=11960&amp;title=mdi-child-with-dockingpane#11960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3941<br /><strong>Posted:</strong> 04 April 2006 at 2:19pm<br /><br /><P>For MDI child you must move all code from Designer to OnLoad:</P><P>&nbsp;</P><P>this.DockingPaneManager = new AxXtremeDockingPane.AxDockingPane();</P><P>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.Location = new System.Drawing.Point(8, 32);<BR>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.Name = "DockingPaneManager";<BR>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.Size = new System.Drawing.Size(24, 24);<BR>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.TabIndex = 2;<BR>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.ResizeEvent += new System.EventHandler(this.DockingPaneManager_ResizeEvent);<BR>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.AttachPaneEvent += new  AxXtremeDockingPane._DDockingPaneEvents_AttachPaneEventHandl er(this.DockingPaneManager_AttachPaneEvent); <BR> &nbsp;&nbsp;&nbsp;this.DockingPaneManager.GetClientBordersWi dth += new  AxXtremeDockingPane._DDockingPaneEvents_GetClientBordersWidt hEventHandler(this.DockingPaneManager_GetClientBordersWidth) ;<BR>&nbsp;&nbsp;&nbsp;this.DockingPaneManager.Action += new  AxXtremeDockingPane._DDockingPaneEvents_ActionEventHandler(t his.DockingPaneManager_Action); <BR></P><P>&nbsp;</P><P>this.Controls.Add (DockingPaneManager);</P>]]>
   </description>
   <pubDate>Tue, 04 Apr 2006 14:19:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=11960&amp;title=mdi-child-with-dockingpane#11960</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Child with DockingPane :  I need to have a docking pane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=11956&amp;title=mdi-child-with-dockingpane#11956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1894">helios456</a><br /><strong>Subject:</strong> 3941<br /><strong>Posted:</strong> 04 April 2006 at 1:46pm<br /><br />I need to have a docking pane for my MDI application which I have now done, but when I try to create a second DockingPane for my MDIChild, the Panes don't display.&nbsp; When I run the MDI client as it's own application there aren't any problems but as soon as I call it as an MDI child, it doesn't work anymore.&nbsp; I'm using VS .NET with C# if that helps.&nbsp; Any Suggestions?]]>
   </description>
   <pubDate>Tue, 04 Apr 2006 13:46:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3941&amp;PID=11956&amp;title=mdi-child-with-dockingpane#11956</guid>
  </item> 
 </channel>
</rss>