<?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 : Post-Initializati&#111;n &#069;vent?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Post-Initializati&#111;n &#069;vent?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 04:24:02 +0000</pubDate>
  <lastBuildDate>Thu, 10 Feb 2005 11:12:01 +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=1771</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[Post-Initializati&#111;n &#069;vent? : AttachPane is called when the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5062&amp;title=postinitialization-event#5062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1771<br /><strong>Posted:</strong> 10 February 2005 at 11:12am<br /><br />AttachPane is called when the pane becomes visible.&nbsp; If a pane ishidden on startup, then the AttachPane for that pane will not be calleduntil it is shown.]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 11:12:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5062&amp;title=postinitialization-event#5062</guid>
  </item> 
  <item>
   <title><![CDATA[Post-Initializati&#111;n &#069;vent? : Thanks, guys.  I got a bit confused...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5061&amp;title=postinitialization-event#5061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=979">blazej</a><br /><strong>Subject:</strong> 1771<br /><strong>Posted:</strong> 10 February 2005 at 11:09am<br /><br />Thanks, guys.  I got a bit confused by CodeJock samples where they create the actual controls only in AttachPane event handlers.  Now I'm creating them in MainForm_Load() and it works fine.<br /><br />There is one question: is it *guaranteed* that the AttachPane events will be raised after MainForm_Load() finishes executing?<br /><br />Thanks<br /><br />Michal]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 11:09:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5061&amp;title=postinitialization-event#5061</guid>
  </item> 
  <item>
   <title><![CDATA[Post-Initializati&#111;n &#069;vent? :   Boyd wrote:You shouldn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5050&amp;title=postinitialization-event#5050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=864">JamesH</a><br /><strong>Subject:</strong> 1771<br /><strong>Posted:</strong> 09 February 2005 at 6:34pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Boyd" alt="Originally posted by Boyd" style="vertical-align: text-bottom;" /> <strong>Boyd wrote:</strong><br /><br />You shouldn't have to worry about the AttachPane event.&nbsp; All it does it tell DockingPaneManager the handles of the controls it needs to capture in order to make the pane.&nbsp; It has nothing to do with the actual loading of the panes (as far as I know).</td></tr></table> </P><P>I'm still quite new to all this, but I found if I setup all my panes in an initialization routine by manually assigning the hwnd handle this worked fine.&nbsp; UNTIL I tried to load a saved configuration, the load routine seems to re-create all the existing panes so either you need to also assign the handles manually after a load or rely on the AttachPane event as it is called after the load as well as when the panes are first created.&nbsp; (At least I think that's how it all works, <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0">)</P><P>As for the original question.&nbsp; What do you mean by "Loaded"?&nbsp; Can't you just do it after all of your calls to CreatePane?&nbsp; If you need to know how many panes have been created so far you could use the count property.&nbsp; Maybe I'm not following what you want to do...</P>]]>
   </description>
   <pubDate>Wed, 09 Feb 2005 18:34:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5050&amp;title=postinitialization-event#5050</guid>
  </item> 
  <item>
   <title><![CDATA[Post-Initializati&#111;n &#069;vent? : I handle dockable panes like this....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5049&amp;title=postinitialization-event#5049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1771<br /><strong>Posted:</strong> 09 February 2005 at 5:54pm<br /><br /><P>I handle dockable panes like this.&nbsp; Each "pane" is a separate UserControl.&nbsp; I have variables declared in the main form that are instances of each pane to create.&nbsp; I then use the OnLoad override of the form the setup the panes (I use this instead of the forms&nbsp;constructor just to make sure the form is fully loaded).&nbsp; Within the setup code, I set my variables to a&nbsp;new instance of each UserControl (which will load each one as it's created).&nbsp; I then create and&nbsp;add my panes to DockingPaneManager.</P><P>You shouldn't have to worry about the AttachPane event.&nbsp; All it does it tell DockingPaneManager the handles of the controls it needs to capture in order to make the pane.&nbsp; It has nothing to do with the actual loading of the panes (as far as I know).</P><P>Your panes will be loaded in the order they are instatiated.&nbsp; I like to use separate UserControls for each pane because it keeps the code with the pane and makes it easier to use the same pane in another application.</P><P>I'm not sure I answered you question, but I hope I helped provide some useful information.&nbsp; I've never gotten a lot of feedback about C# issues on this forum, so I'll help you were I can.</P>]]>
   </description>
   <pubDate>Wed, 09 Feb 2005 17:54:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5049&amp;title=postinitialization-event#5049</guid>
  </item> 
  <item>
   <title><![CDATA[Post-Initializati&#111;n &#069;vent? : Hi  I use both DockingPaneManager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5046&amp;title=postinitialization-event#5046</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=979">blazej</a><br /><strong>Subject:</strong> 1771<br /><strong>Posted:</strong> 09 February 2005 at 4:35pm<br /><br />Hi<br /><br />I use both DockingPaneManager and ControlBars. I need to perform some tasks once *all* panes are loaded (they are interdependent). I tried to put my initialization code at the end of MainForm_Load() but it seems that the panes are not attached to the DockingManager at this point. I tried raising an event from within DockingPaneManager_AttachPaneEvent() but got a weird ActiveX error.<br /><br />Any ideas, anyone?<br /><br />Thanks<br /><br />Michal Blazejczyk]]>
   </description>
   <pubDate>Wed, 09 Feb 2005 16:35:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1771&amp;PID=5046&amp;title=postinitialization-event#5046</guid>
  </item> 
 </channel>
</rss>