<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: childform code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 18:51:02 GMT</pubDate>
    <description>DZone Snippets: childform code</description>
    <item>
      <title>No duplicate forms in MDI Parent</title>
      <link>http://snippets.dzone.com/posts/show/4499</link>
      <description>//This will ensure that no duplicate copies of a child form is created in an //MDI_Parent&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;            //"Display" is the form name&lt;br /&gt;            foreach (Form childForm in this.MdiChildren)&lt;br /&gt;            {&lt;br /&gt;                if (childForm.GetType() == typeof(Display))&lt;br /&gt;                {&lt;br /&gt;                    childForm.Focus();&lt;br /&gt;                    return;&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            Display frmDisplay = new Display();&lt;br /&gt;            frmDisplay.MdiParent = this;&lt;br /&gt;            frmDisplay.Show();&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 06 Sep 2007 10:32:03 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4499</guid>
      <author>dubby (Dave)</author>
    </item>
  </channel>
</rss>
