<?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 : TabC&#111;ntrol inside an MDI Child Window</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : TabC&#111;ntrol inside an MDI Child Window]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 21:04:28 +0000</pubDate>
  <lastBuildDate>Fri, 09 Sep 2005 16:30:36 +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=2866</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[TabC&#111;ntrol inside an MDI Child Window : So I have the need to create a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2866&amp;PID=8558&amp;title=tabcontrol-inside-an-mdi-child-window#8558</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1470">djheath</a><br /><strong>Subject:</strong> 2866<br /><strong>Posted:</strong> 09 September 2005 at 4:30pm<br /><br />So I have the need to create a Tabbed MDI child window and see that there is a problem when the form that is associated with each tab has the docking property set to 'Fill'. <br /><br />Essentially, the docking property really thinks it means 'fill' and as such the tabs are no longer available (the form is filling the entire MDI child window.)<br /><br />I'm working in C# and below is my code:<br /><br />private void formDocument_Load(object sender, System.EventArgs e) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;affinityRun = new formDataRun();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;affinityRun.Parent = TabControl;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;affinityRun.Dock = System.Windows.Forms.DockStyle.Fill;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Object x = TabControl.InsertItem(0, "Affinity", affinityRun.Handle.ToInt32(), 300);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;desaltingRun = new formDataRun();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;desaltingRun.Dock = System.Windows.Forms.DockStyle.Fill;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TabControl.InsertItem(1, "Desalting", desaltingRun.Handle.ToInt32(), 300);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TabControl.Icons = (XtremeSuiteControls.ImageManagerIcons)ImageManager.Icons;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TabControl.PaintManager.Positi on = XtremeSuiteControls.XTPTabPosition.xtpTabPositionLeft;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TabControl.PaintManager.Layout = XtremeSuiteControls.XTPTabLayoutStyle.xtpTabLayoutFixed;<br />}<br /><br />the formDataRun is a simple Windows Form with an inner panel (the contents of which have been determined to be immaterial, through some testing.)<br /><br />Everything looks okay if I remove the dock assignment, but it'll look pretty silly if the user maximizes the window and the inner panel stays the same size.<br /><br />Anyone else run into this situation? Thanks in advance,<br /><br />-djh<br />]]>
   </description>
   <pubDate>Fri, 09 Sep 2005 16:30:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2866&amp;PID=8558&amp;title=tabcontrol-inside-an-mdi-child-window#8558</guid>
  </item> 
 </channel>
</rss>