﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » MdiWindowListItem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 22 May 2026 17:08:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost27555.aspx</link><description>Thanks.  I would be interested in this too.</description><pubDate>Sun, 27 Jun 2010 11:51:54 GMT</pubDate><dc:creator>Russell Scott Brown</dc:creator></item><item><title>MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost5186.aspx</link><description>Hiya.&lt;/P&gt;&lt;P&gt;I am shamelessly trying to copy "someone's" idea of a MainForm.:P&lt;/P&gt;&lt;P&gt;My intention is to get rid of the MenuStrip and use the ThemedToolStrip instead. So far, so good. But now I got to the "Window" item, which will show the opened MDI windows list.&lt;/P&gt;&lt;P&gt;Now I would need to have a "Window" ToolStripDropDownButton to behave in the same way as the MenuStrip MdiWindowListItem. Would that be too difficult to implement?&lt;/P&gt;&lt;P&gt;Cheers.</description><pubDate>Sun, 27 Jun 2010 11:51:54 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost27554.aspx</link><description>Hiya.&lt;/P&gt;&lt;P&gt;Nope, this is not a StrataFrame control. This is deeply and specificaly built into PracticeStudio. Iwill see if I can get some hints on how to accomplish this and pass them to you.</description><pubDate>Sun, 27 Jun 2010 08:13:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost27547.aspx</link><description>&lt;IMG src="http://forum.strataframe.net/Uploads/Images/939989b1-9254-4480-8ff1-5e6f.JPG"&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to use a tabbed form interface similar to the practice studio. Is this a control contained in Strataframe? Could you please help me to create a similar one?</description><pubDate>Sat, 26 Jun 2010 04:23:33 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost20385.aspx</link><description>That will work fine :)</description><pubDate>Tue, 28 Oct 2008 09:09:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost20377.aspx</link><description>Hooray, I've had some success! Maybe I should get up at 2am more often. :D&lt;br&gt;
&lt;br&gt;
So, now my question is, is this the best way of doing this?&lt;br&gt;
&lt;br&gt;
[codesnippet]        private void tlmSecurity_ItemClicked(object sender, ThemedLinkMenuClickEventArgs e)&lt;br&gt;
        {&lt;br&gt;
            if (e.Item.Key.Equals("SecurityEditor", StringComparison.OrdinalIgnoreCase))&lt;br&gt;
            {&lt;br&gt;
                MainForm loForm;&lt;br&gt;
                loForm = (MainForm)this.ParentForm;&lt;br&gt;
&lt;br&gt;
                loForm.LaunchDialog(typeof(SecurityDialog));&lt;br&gt;
            }&lt;br&gt;
        }[/codesnippet]&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
Keith</description><pubDate>Mon, 27 Oct 2008 12:15:40 GMT</pubDate><dc:creator>Keith Gordijn</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost20375.aspx</link><description>[quote][b]Trent L. Taylor (06/14/2007)[/b][hr]I think that the best thing to do would be to expose the MDI client...or....if your main form just has the MDIContainer property set you can reference it directly. When the form is launched it will have a reference to the parent form in the ParentForm property which you can type and reference. You may need to make your LauncForm method public or Friend so it can be accessed though.&lt;br&gt;
&lt;br&gt;
[codesnippet]DirectCast(Me.ParentForm, MainForm).LaunchForm(GetType(MyChildForm))[/codesnippet]&lt;br&gt;
&lt;br&gt;
If you are using an MDIClient control and manually adding it to the form, then you can just expose it through a public property and basically do the same thing:&lt;br&gt;
&lt;br&gt;
[codesnippet]DirectCast(Me.ParentForm, MainForm).MDIClientProperty.LaunchForm(GetType(MyChildForm))[/codesnippet][/quote]&lt;br&gt;
&lt;br&gt;
Hi Trent,&lt;br&gt;
&lt;br&gt;
My project follows the ideas outlined in this topic by following the StrataFlix example and I would also like to use the LaunchDialog method of the mainform from a "Setup and Configuration" form (strangely also very similar to the PracticeStudio.NET screen shot earlier in this topic) to open a maintenance form as a child form in the main mdi form.  &lt;br&gt;
&lt;br&gt;
Unfortunately my still limited knowledge of C# wont let me alter the above VB code to a C# version so any help on doing this would be great.&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
Keith</description><pubDate>Mon, 27 Oct 2008 11:12:47 GMT</pubDate><dc:creator>Keith Gordijn</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15678.aspx</link><description>Just to add another option to this thread you can also handle the Mdi Client Control Added and Removed on your Main MDI Form.&lt;P&gt;[codesnippet]&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;#Region&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;" MDI Client Handled Events"&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; MDIClient_ControlAdded(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; Windows.Forms.ControlEventArgs)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'--&amp;gt; Cast To My Base Class so we get custom properties&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; loChild &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; Payroll.Base.WindowsForms.DevExMaintFormBase = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;(e.Control, System.Windows.Forms.Form)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;' do anything you need to do -add handlers update custom lists etc&lt;/FONT&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; MDIClient_ControlRemoved(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Object&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; Windows.Forms.ControlEventArgs)&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;'--&amp;gt; Cast To&amp;nbsp;Base Class so we get custom properties&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; loChild &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; Payroll.Base.WindowsForms.DevExMaintFormBase = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;(e.Control, System.Windows.Forms.Form)&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000&gt;' do anything you need to do - remove handlers update custom lists etc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;P&gt;#End&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Region&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;[/codesnippet]</description><pubDate>Wed, 16 Apr 2008 08:36:14 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15677.aspx</link><description>Hi Teddy,&lt;/P&gt;&lt;P&gt;Thanks for sharing this approach, it definitely&amp;nbsp;provide ideas on how to get similar results in different ways which is very good, specially when learning .NET.</description><pubDate>Wed, 16 Apr 2008 07:36:24 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15675.aspx</link><description>In case anyone wants a ToolStripDropDownButton instead of a windowslist in a sidepanel or on a menu you can use this approach.&lt;/P&gt;&lt;P&gt;On the toolstrip i have a button called tsbVinduer so my code on the main form is&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;Private&lt;/SPAN&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;FONT color=#000000&gt; tsbVinduer_DropDownOpening(&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; sender &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Object&lt;/SPAN&gt;&lt;FONT color=#000000&gt;, &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; System.EventArgs) &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Handles&lt;/SPAN&gt;&lt;FONT color=#000000&gt; tsbVinduer.DropDownOpening&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;tsbVinduer.DropDownItems.Clear()&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;For&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Each&lt;/SPAN&gt;&lt;FONT color=#000000&gt; f &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Form &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;In&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Me&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.MdiChildren&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt;&lt;FONT color=#000000&gt; item &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; ToolStripMenuItem = &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;New&lt;/SPAN&gt;&lt;FONT color=#000000&gt; ToolStripMenuItem(f.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;item.Tag = f&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;AddHandler&lt;/SPAN&gt;&lt;FONT color=#000000&gt; item.Click, &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;AddressOf&lt;/SPAN&gt;&lt;FONT color=#000000&gt; item_Click&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;tsbVinduer.DropDownItems.Add(item)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Private&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;FONT color=#000000&gt; item_Click(&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; sender &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Object&lt;/SPAN&gt;&lt;FONT color=#000000&gt;, &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; EventArgs)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt;&lt;FONT color=#000000&gt; item &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; ToolStripItem = &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;TryCast&lt;/SPAN&gt;&lt;FONT color=#000000&gt;(sender, ToolStripItem)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;/SPAN&gt;&lt;FONT color=#000000&gt; item &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;IsNot&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Nothing&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt;&lt;FONT color=#000000&gt; f &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Form = &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;TryCast&lt;/SPAN&gt;&lt;FONT color=#000000&gt;(item.Tag, Form)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;/SPAN&gt;&lt;FONT color=#000000&gt; f &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;IsNot&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Nothing&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;f.Activate()&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-ansi-language: EN-GB; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;End&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It gives me this result:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/4ce681ad-8550-42f1-b991-701d.png"&gt;&lt;/P&gt;&lt;P&gt;/Teddy</description><pubDate>Wed, 16 Apr 2008 05:36:02 GMT</pubDate><dc:creator>Teddy Jensen</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15649.aspx</link><description>You would be passing it into some method.&amp;nbsp; If you look further up the food-chain on this thread, you will see that they have a collection that stores off the open forms.&amp;nbsp; So when the form is loaded, you would add this guid to the collection with probably a title or something else so that it could be identified in the list (if you are using the panel on the left approach).</description><pubDate>Tue, 15 Apr 2008 13:24:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15648.aspx</link><description>[quote][b]Trent L. Taylor (04/15/2008)[/b][hr]&lt;BR&gt;[codesnippet]For each f as Form In Me.MdiChildren&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If DirectCast(f, MyBaseForm).FormId = &lt;STRONG&gt;MyLookupId&lt;/STRONG&gt; Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- You found the form&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;Next[/codesnippet]&lt;P&gt;If you take this approach you will be much safer across multiple platforms and won't be reliant upon the window handle.[/quote]&lt;P&gt;Trent, I hate to ask, but using the GUID logic, where is the &lt;STRONG&gt;MyLookupID&lt;/STRONG&gt; value coming from?</description><pubDate>Tue, 15 Apr 2008 13:00:32 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15641.aspx</link><description>Since we no longer use this logic I hadn't noticed that Vista changes the handle several times through the life of the form.&amp;nbsp; So to get around this, if you still intend to use window handle, then you will need to override the OnHandleChanged method to trap that event so that you can update your collection logic.&lt;/P&gt;&lt;P&gt;[codesnippet]Overrides Protected Sub OnHandleChanged(...)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Add your logic to update the collections&lt;BR&gt;End Sub[/codesnippet]&lt;/P&gt;&lt;P&gt;However, I would recommend against using the window handle at this point and add a Guid property to your BaseForm that uniquely identifies the form:&lt;/P&gt;&lt;P&gt;[codesnippet]Public Class MyBaseForm&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits MicroFour.StrataFrame.UI.Windows.Forms.StandardForm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Private _FormId As String = System.Guid.NewGuid().ToString()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Public Readonly Property FormId As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return _FormId&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp; End Property&lt;BR&gt;End Class[/codesnippet]&lt;/P&gt;&lt;P&gt;Then you can enumerate the Forms collection of the MDI to find your form and then activate it (this code would be referencing the MDI&amp;nbsp; form):&lt;BR&gt;&lt;BR&gt;[codesnippet]For each f as Form In Me.MdiChildren&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If DirectCast(f, MyBaseForm).FormId = MyLookupId Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- You found the form&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;Next[/codesnippet]&lt;/P&gt;&lt;P&gt;If you take this approach you will be much safer across multiple platforms and won't be reliant upon the window handle.</description><pubDate>Tue, 15 Apr 2008 10:24:26 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15639.aspx</link><description>Oh....nevermind, you are using that older logic on the window handles being stored off in the collection...gotcha.&amp;nbsp; I will see if I can reproduce.</description><pubDate>Tue, 15 Apr 2008 10:12:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15638.aspx</link><description>OK...different than what?&amp;nbsp; You have mentioned that you are getting back a different handle...but what are you comparing the handle to?&amp;nbsp;</description><pubDate>Tue, 15 Apr 2008 10:10:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15632.aspx</link><description>Just to confirm,&lt;/P&gt;&lt;P&gt;&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl17_lblFullMessage&gt;I'm&amp;nbsp;also getting back a different handle to than which the child window was assigned on creation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And also I've tried changing to formclosing but the handle still changes.&lt;/SPAN&gt;</description><pubDate>Tue, 15 Apr 2008 09:50:12 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15628.aspx</link><description>The form handle won't change after it has been assigned.&amp;nbsp; If you are running in an MDI environment, then you can handle the OnParentChanged event and save off the handle at that point (I recommend against this).&amp;nbsp; You should ALWAYS be able to reference the Me.Handle of the form and it will return the handle to which it is presently assigned, which is the only one that you should ever deal with.&amp;nbsp; This is standard WinForms logic...once a handle is assigned it should never be changed unless the parent changes...that may be the ONLY time that it would change.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Now it is another thing entirely if the handle has already been released.&amp;nbsp; In that case you just need to handle an event further up the chain to perform your closing logic.</description><pubDate>Tue, 15 Apr 2008 09:35:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15627.aspx</link><description>I'm trying the VB version of this technique and I too am getting back a different handle to that which the child window was assigned on creation. I've tried changing to formclosing but the handle still changes. Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mike</description><pubDate>Tue, 15 Apr 2008 09:08:44 GMT</pubDate><dc:creator>Mike Tomlin</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15451.aspx</link><description>Handle the FormClosing event instead of the FormClosed event...that way you will still have a handle.</description><pubDate>Tue, 08 Apr 2008 14:09:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15448.aspx</link><description>Hi,&lt;br&gt;
May I know what control/container are you using to drop window and user panel on? I tried to use flowlayout but its docking cause themetoolstrip unable to dock to top with full screen width.&lt;br&gt;
&lt;br&gt;
Please advice.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Tue, 08 Apr 2008 12:26:08 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15447.aspx</link><description>Hi,&lt;br&gt;
I tried the code snippet and convert it to C# as below. I face problem that, the value of loForm.handle is changed in HandleFormClosed event handler. Any ideas? Thank you&lt;br&gt;
&lt;br&gt;
[codesnippet]        private void LaunchForm(System.Type FormType)&lt;br&gt;
        {&lt;br&gt;
            //-- Establish Locals&lt;br&gt;
            Form loForm;&lt;br&gt;
            //-- Create the form&lt;br&gt;
            loForm = (Form)Activator.CreateInstance(FormType);&lt;br&gt;
            //-- Set the MDI parent&lt;br&gt;
            loForm.MdiParent = this;&lt;br&gt;
            int lnHandle = (int)loForm.Handle;&lt;br&gt;
            loForm.FormClosed += this.HandleFormClosed;&lt;br&gt;
            _Forms.Add(lnHandle, loForm);&lt;br&gt;
            imgWindows.Images.Add(loForm.Text, loForm.Icon);&lt;br&gt;
            lvWindows.Items.Add(lnHandle.ToString(), loForm.Text, imgWindows.Images.Count - 1);&lt;br&gt;
            //-- Show the form&lt;br&gt;
            loForm.Show();&lt;br&gt;
        }&lt;br&gt;
&lt;br&gt;
        private void HandleFormClosed(object sender, FormClosedEventArgs e)&lt;br&gt;
        {&lt;br&gt;
            System.Windows.Forms.Form loForm;&lt;br&gt;
            loForm = (Form)sender;&lt;br&gt;
            int lnHandle = (int)loForm.Handle;&lt;br&gt;
            if (_Forms.ContainsKey(lnHandle))&lt;br&gt;
            {&lt;br&gt;
                loForm = _Forms[lnHandle];&lt;br&gt;
                loForm.FormClosed -= HandleFormClosed;&lt;br&gt;
                imgWindows.Images.RemoveByKey(loForm.Text);&lt;br&gt;
                lvWindows.Items.RemoveByKey(lnHandle.ToString());&lt;br&gt;
                _Forms.Remove(lnHandle);&lt;br&gt;
            }&lt;br&gt;
        }[/codesnippet]</description><pubDate>Tue, 08 Apr 2008 11:45:38 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15262.aspx</link><description>[quote][b]Ben Chase (03/31/2008)[/b][hr]You'll need to store more than just "frmFormName" in the tag of the form, however, because the Type.GetType() static method requires the full name of the class. &lt;P&gt;Type.GetType("MyNamespace.frmMyFormName")&lt;/P&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;Hi Ben,&lt;P&gt;Thanks for the explanation.&amp;nbsp; Using [codesnippet]Type.GetType("MyNamespace.frmMyFormName")[/codesnippet] does give me the results I was looking for.&lt;P&gt;If I were to use the ReolveForm solution, I would then have to make an entry in the Case statement for every form I add to the project and all I am trying to do is to have all forms identified in a Item.Tag so I don't have to manually remember to keep adding it to the Case statement.&amp;nbsp; Thanks again!!!</description><pubDate>Mon, 31 Mar 2008 09:55:26 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15252.aspx</link><description>You can use System.Type.GetType(typeNameAsString) to convert a string to a System.Type.&amp;nbsp; You'll need to store more than just "frmFormName" in the tag of the form, however, because the Type.GetType() static method requires the full name of the class. &lt;/P&gt;&lt;P&gt;Type.GetType("MyNamespace.frmMyFormName")&lt;/P&gt;&lt;P&gt;That will be what you'll have to give it.&lt;/P&gt;&lt;P&gt;Also, it might be the case that that method will not be able to resolve the name because your form type exists in another assembly.&amp;nbsp; If that's the case, then you'll need to give it the fully qualified assembly name.&amp;nbsp; It's basically the full name with a comma and the assembly name right after it like this:&lt;/P&gt;&lt;P&gt;"MyNamespace.frmMyFormName, MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"&lt;/P&gt;&lt;P&gt;That's the difference between the Type.GetType() static method and the GetType() keyword (the keyword turns blue when you type it).&amp;nbsp; If you use the keyword, it will always resolve because the reference is resolved and at compile-time.&amp;nbsp; So, you might want to create a method that will resolve the names for you and uses the keyword to get the type.&amp;nbsp; Like this:&lt;/P&gt;&lt;P&gt;Public Shared Function ResolveFormType(ByVal formName As String) As Type&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select Case formName&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case "frmForm1"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return GetType(frmForm1)&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case "frmForm2"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return GetType(frmForm2)&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case "frmForm3"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return GetType(frmForm3)&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Case&lt;BR&gt;End Function&lt;/P&gt;&lt;P&gt;If you use this method, then the string can be any arbitrary value, as long as it's unique and you can assign it a type to return from the method.</description><pubDate>Mon, 31 Mar 2008 08:47:27 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost15248.aspx</link><description>H all,&lt;P&gt;I am using the LoadForm method posted here to load the forms, but I would like to automate this method by passing the form name stored in a Tag property of a menu item or a DevExpress RibbonControl Item.&lt;/P&gt;&lt;P&gt;The item will have the name of the form as string like this "frmProducers" but the LoadForm method is expecting a System.Type parameter instead of string, how can I either convert the Item.Tag string containing the form name as a System.Type expected by the LoadForm method posted here?&lt;/P&gt;&lt;P&gt;[quote][codesnippet]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; LoadForm(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;STRONG&gt;FormType &lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;STRONG&gt;As&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;STRONG&gt; System.Type&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Establish Locals&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; loForm &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; System.Windows.Forms.Form&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Create the form &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;loForm = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;(Activator.CreateInstance(FormType), System.Windows.Forms.Form)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Associate the new form with the MDI form&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;loForm.MdiParent = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Add a handler to the form close&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;AddHandler&lt;/FONT&gt;&lt;FONT size=2&gt; loForm.FormClosed, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;AddressOf&lt;/FONT&gt;&lt;FONT size=2&gt; HandleFormClosed&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- This is a good place to update your open form collection&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;_Forms.Add(loForm.Handle.ToInt32(), loForm)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Update the list or menu&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Show the Form &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;loForm.Show()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet][/quote]&lt;P&gt;The whole idea is to either type the form name in the Item.Tag property or read it from a database to load all the Items and update the Item.Tag which will make a generic single call to the LoadForm.&lt;P&gt;Thanks.</description><pubDate>Sun, 30 Mar 2008 22:19:41 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: MdiWindowListItem</title><link>http://forum.strataframe.net/FindPost10211.aspx</link><description>Hi Teddy.&lt;P&gt;I'm glad Trent could help you, he got all this from me... oh, wait, I think the orther of the words are not set properly... &lt;P&gt;:unsure:</description><pubDate>Wed, 11 Jul 2007 17:16:25 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>