﻿<?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?)  » Opening mdi child from Browse Dialog</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 28 Sep 2026 00:09:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Opening mdi child from Browse Dialog</title><link>http://forum.strataframe.net/FindPost30786.aspx</link><description>Hi&lt;br/&gt;&lt;br/&gt;&lt;div&gt;From an MDI child form I run a browse dialog from a button click. When the user runs the search the custom information panel of the browse dialog shows a list of related items in a StratListView each one having a link.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;What I want to do is click on the link, close the browse and open a new MDI child form showing details relating to that link. As the browse dialog opens as modal I'm struggling to reference the MDI parent properly (relative&amp;nbsp;beginner&amp;nbsp;in C#).&lt;br/&gt;&lt;br/&gt;&lt;div&gt;If I was opening a new child mdi from an existing child mdi then something like&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;MainForm loForm;&lt;/span&gt;&lt;br style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;loForm = (MainForm)this.ParentForm;&lt;/span&gt;&lt;br style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;loForm.LaunchDialog(typeof(MyNewDialog));&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;ought to work.&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;What do I need to do to get it to work when running from the info panel of a browse dialog?&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;Many thanks&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;Mike&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 128); font-family: 'Courier New', Verdana; font-size: 11px; line-height: 21px; background-color: rgb(255, 255, 255); "&gt;&lt;br/&gt;&lt;/span&gt;</description><pubDate>Mon, 09 Jan 2012 12:48:28 GMT</pubDate><dc:creator>Mike Tomlin</dc:creator></item><item><title>RE: Opening mdi child from Browse Dialog</title><link>http://forum.strataframe.net/FindPost30794.aspx</link><description>Would you be able to open it just as a normal dialog? Something like:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[codesnippet]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Instanciate the new form&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim MyChildForm1 As New MyChildForm&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- show it as a Dialog&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyChildForm1.ShowDialog()&lt;br/&gt;[/codesnippet]&lt;/span&gt;</description><pubDate>Mon, 09 Jan 2012 12:48:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Opening mdi child from Browse Dialog</title><link>http://forum.strataframe.net/FindPost30793.aspx</link><description>Hi Ivan&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I hadn't got that far yet. What I am stuck on is how to reference the mdi parent form so I can open a new mdi child form from the browse dialog which is outside the mdi structure - i.e it doesn't have a mdi parent? Have I explained it better&amp;nbsp;&lt;span&gt;:)&lt;/span&gt;</description><pubDate>Mon, 09 Jan 2012 12:06:48 GMT</pubDate><dc:creator>Mike Tomlin</dc:creator></item><item><title>RE: Opening mdi child from Browse Dialog</title><link>http://forum.strataframe.net/FindPost30787.aspx</link><description>Have you tried passing your BD as a parameter to your newly created form and then trying to close it from there once shown?</description><pubDate>Fri, 06 Jan 2012 14:17:51 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>