<?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 Tabs -- improve functionality</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Visual Basic Code Snippets : MDI Tabs -- improve functionality]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 05:35:19 +0000</pubDate>
  <lastBuildDate>Mon, 28 Nov 2011 10:34:05 +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=13185</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 Tabs -- improve functionality : nice tip ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13185&amp;PID=66936&amp;title=mdi-tabs-improve-functionality#66936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6196">faakher</a><br /><strong>Subject:</strong> 13185<br /><strong>Posted:</strong> 28 November 2011 at 10:34am<br /><br />nice tip&nbsp;<img src="http://forum.codejock.com/smileys/smiley36.gif" border="0" alt="LOL" title="LOL" />]]>
   </description>
   <pubDate>Mon, 28 Nov 2011 10:34:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13185&amp;PID=66936&amp;title=mdi-tabs-improve-functionality#66936</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Tabs -- improve functionality : Using MDI Tabs with Groups (ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13185&amp;PID=44610&amp;title=mdi-tabs-improve-functionality#44610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13185<br /><strong>Posted:</strong> 15 January 2009 at 11:11am<br /><br />Using MDI Tabs with Groups (ActiveX in VB6) I find it useful to sometimes set a childForm.Enabled = False.&nbsp; This lets user view the form but they cannot edit it or give it focus.&nbsp; <br><br>However, because of the way CommandBars works, you can get get into situation where the not-enabled Form is on top, and it is impossible to select any other Form.<br><br>Secondly, because CommandBars seems to store the current Tab for each Group, it can be difficult for user to switch to different Group (ie. clicking on the current Tab is ignored by CommandBars, even if it is in a different Group).<br><br><br>I found that adding the following code in the Workspace_BeforeItemClick event solves both of the above problems, and does not appear to have any side-effects. <br><br>&nbsp;&nbsp; Dim X as Long<br>&nbsp;&nbsp; For X = 1 to Forms.Count - 1&nbsp;&nbsp;&nbsp; 'ignore Forms(0) the MIDForm<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Forms(X).hwnd = Item.Handle then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Forms(X).ZOrder 0&nbsp;&nbsp;&nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Force this Form (and hence this Tab) to be selected<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp; Next<br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 11:11:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13185&amp;PID=44610&amp;title=mdi-tabs-improve-functionality#44610</guid>
  </item> 
 </channel>
</rss>