<?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 : Enter and Leave &#101;vents d&#111;n&#146;t work</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Enter and Leave &#101;vents d&#111;n&#146;t work]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 15:24:21 +0000</pubDate>
  <lastBuildDate>Thu, 10 Feb 2005 15:24:17 +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=1773</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[Enter and Leave &#101;vents d&#111;n&#146;t work : Thanks Boyd, I&amp;#039;m sure this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5075&amp;title=enter-and-leave-events-dont-work#5075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 3:24pm<br /><br />Thanks Boyd, I'm sure this will come in handy. I appreciate your taking the time to write this out.]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 15:24:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5075&amp;title=enter-and-leave-events-dont-work#5075</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : Unfortunately, I don&amp;#039;t have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5074&amp;title=enter-and-leave-events-dont-work#5074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 3:20pm<br /><br /><P>Unfortunately, I don't have a sample VB app that uses this, but I'll repeat the basic concepts.</P><OL><LI>Create a PictureBox control on the main form that will hold the content of every pane you wish to create.&nbsp; I suggest making this a control array so that you can use a single event handler for all the controls (like for the Resize event).&nbsp; This also helps be assigning the PictureBox the same index as the ID you use to identify a pane.</LI><LI>Set the 'visible' property of the PictureBox to false so that it won't appear on the form prior to being attached in the 'AttachPane' event.</LI><LI>Create your panes just as you would if they were on different forms.</LI><LI>In the 'AttachPane' event of CommandBars, set the handle of each pane to the handle of the corresponding PictureBox control.</LI></OL><P>That's the basics.&nbsp; I've been using C# so long that I don't recall any other tricky steps.&nbsp; I hope that helps.</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 15:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5074&amp;title=enter-and-leave-events-dont-work#5074</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : Boyd, I remember an old post of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5072&amp;title=enter-and-leave-events-dont-work#5072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 1:32pm<br /><br /><P>Boyd, I remember an old post of yours about not using multiple Forms in the VB version to host Docking Panes. However&nbsp;I am unable to find this post.</P><P>I am having some focus issues in the VB version at the moment, due to the exact problem you just mentioned. If I remember correctly, this issue has existed for a long time now.&nbsp;Do you have a simple VB sample that you could post, that uses your method of using PictureBoxes in a single form you are describing? Since all the CodeJock samples are based on the seemingly incorrect way of doing things (multiple forms),&nbsp;I think that would be very valuable resource.</P><P>Thanks in advance.</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 13:32:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5072&amp;title=enter-and-leave-events-dont-work#5072</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : No problem!  I did find an issue...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5071&amp;title=enter-and-leave-events-dont-work#5071</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 1:29pm<br /><br /><P>No problem! <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P><P>I did find an issue with this approach that I need to warn you about.&nbsp; Since the AttachPane event is only fired when a pane becomes visible, this means you're controls will be unattached until the pane is visible.&nbsp; In the case of grouped panes, this means the controls aren't attached until the user actually selects the pane in the tabbed group.</P><P>If you use the approach I mentioned, the controls are visible when the are added to the controls collection.&nbsp; That means that unattached controls will be visible until the pane is selected for the first time.&nbsp; To avoid this, you should set the visible property to false when you create the control and then, in the AttachPane event, set the visible property back to true.</P><P>An alternative to the AttachPane event would be to use the OnHandleCreated event of the items you want to add to your panes.&nbsp; At that point, you could assign the handle to the proper pane and not have to wait until the user selects a pane.</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 13:29:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5071&amp;title=enter-and-leave-events-dont-work#5071</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : You rock, man!  Thanks  Michal...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5068&amp;title=enter-and-leave-events-dont-work#5068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=979">blazej</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 12:12pm<br /><br />You rock, man!<br /><br />Thanks<br /><br />Michal]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 12:12:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5068&amp;title=enter-and-leave-events-dont-work#5068</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : I just figured it out. I remembered...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5067&amp;title=enter-and-leave-events-dont-work#5067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 12:06pm<br /><br /><P>I just figured it out.&nbsp; I remembered a similar problem when using these controls in Visual Basic.&nbsp; Only one control within the same container should be able to have focus.&nbsp; In Visual Basic, I use to use separate Forms to create each pane, and that created all kinds of focus problems (since two different forms can have two different active controls).&nbsp; The workaround was to place all my pane controls within different PictureBoxes on the same form.&nbsp; Since they were all in the same container, only one could have focus at a time.</P><P>When working with C#, I use separate UserControls for each pane, and I never really give them a container.&nbsp; To test this theory, I added each newly created pane UserControl to my main form's 'Controls' collection.&nbsp; Since they all are in the same collection, only one can have focus at a time.&nbsp; Sure enough, all the events fired as expected!</P><P>Here's some basic sample code from&nbsp;a routine on&nbsp;a Main Form that could set up the panes:</P><P>//&nbsp;User Controls used as a panes<BR>TestPane paneControl1 = new TestPane();<BR>TestPane paneControl2 = new TestPane();<BR>// Add controls to main form controls collection<BR>this.Controls.Add(paneControl1);<BR>this.Controls.Add(paneControl2);<BR>// Create Panes<BR>dockingPane.CreatePane(ID_PANE_1, 100, 100, DockingDirection.DockTopOf, null);<BR>dockingPane.CreatePane(ID_PANE_2, 100, 100, DockingDirection.DockTopOf, null);<BR>// Note: Assign Handles in AttachPane event</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 12:06:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5067&amp;title=enter-and-leave-events-dont-work#5067</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : I just ran this scenario in one...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5066&amp;title=enter-and-leave-events-dont-work#5066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 11:50am<br /><br /><P>I just ran this scenario in one of my applications, and I'm seeing the same behavior.</P><P>The events will fire properly if you move between controls hosted on the same pane, but not if you move from one pane to another.</P><P>Codejock, any comments on how to get these events to fire properly?</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 11:50:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5066&amp;title=enter-and-leave-events-dont-work#5066</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : Anyone?  :-)))))  Michal ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5064&amp;title=enter-and-leave-events-dont-work#5064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=979">blazej</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 10 February 2005 at 11:18am<br /><br />Anyone?<br /><br />:-)))))<br /><br />Michal]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 11:18:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5064&amp;title=enter-and-leave-events-dont-work#5064</guid>
  </item> 
  <item>
   <title><![CDATA[Enter and Leave &#101;vents d&#111;n&#146;t work : Hi   I&amp;#039;m in the process of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5048&amp;title=enter-and-leave-events-dont-work#5048</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=979">blazej</a><br /><strong>Subject:</strong> 1773<br /><strong>Posted:</strong> 09 February 2005 at 5:52pm<br /><br />Hi <br /><br />I'm in the process of evaluating Xtreme Suite for the purposes of the software project we're working on. I'm using the ActiveX version of the components in C# (VS .NET 2003). <br /><br />I'm using both Command Bars and Docking Pane Manager. In one of my panes I have an edit box. I subscribed to Enter and Leave events of this control. This allows me to automatically save text typed by the user when he/she leaves the edit box. This used to work before I switched my code to CodeJock but now - it doesn't. The Enter event I'm getting only once (no matter how many times I enter and leave the control) and the Leave event I don't get at all.<br /><br />Knowing ActiveX, I think this problem is related to the fact that Xtreme Suite is implemented in ActiveX.<br /><br />Any comments? Workarounds?<br /><br />Michal Blazejczyk]]>
   </description>
   <pubDate>Wed, 09 Feb 2005 17:52:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1773&amp;PID=5048&amp;title=enter-and-leave-events-dont-work#5048</guid>
  </item> 
 </channel>
</rss>