﻿<?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?)  » Child Form Dialog Problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 05 Apr 2026 15:02:37 GMT</lastBuildDate><ttl>20</ttl><item><title>Child Form Dialog Problem</title><link>http://forum.strataframe.net/FindPost12694.aspx</link><description>I have created a COM Wrapper DLL that I can call from our VB6 application which opens up selected .NET forms.&amp;nbsp; In my COM Dll I set all the Microfour settings found in the appmain.&amp;nbsp; (Connection, localization) etc...&lt;/P&gt;&lt;P&gt;In general everything seems to work fine, however I get errors&amp;nbsp;when I use child form dialogs in my .NET project and try calling from my COM Wrapper. I also think I have a similar problem when I fill combo boxes using item populating settings.&lt;/P&gt;&lt;P&gt;Is there a reference I am missing or something I may be doing incorrectly to cause the error?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;************** Exception Text **************&lt;/P&gt;&lt;P&gt;System.Exception: Type 'Avanti.Scheduling.frmMilestonesDialog' could not be found in the referenced assemblies. ---&amp;gt; System.Exception: The call to 'MicroFour.StrataFrame.Tools.GetTypeFromReferencedAssemblies' failed because the entry assembly could not be evaluated.&lt;/P&gt;&lt;P&gt;at MicroFour.StrataFrame.Tools.Common.GetTypeFromReferencedAssemblies(String TypeName)&lt;/P&gt;&lt;P&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P&gt;at MicroFour.StrataFrame.Tools.Common.GetTypeFromReferencedAssemblies(String TypeName)&lt;/P&gt;&lt;P&gt;at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.CreateForm(Object[] Arguments)&lt;/P&gt;&lt;P&gt;at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.ShowDialog(Object[] Arguments)&lt;/P&gt;&lt;P&gt;at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.ShowDialog()&lt;/P&gt;&lt;P&gt;at Avanti.Scheduling.frmMilestones.ShowChildForm() in C:\Source Code\Scheduling\Avanti Scheduling\Avanti Scheduling\Forms\frmMilestones.vb:line 253&lt;/P&gt;&lt;P&gt;at Avanti.Scheduling.frmMilestones.grdMilestones_DoubleClickRow(Object sender, DoubleClickRowEventArgs e) in C:\Source Code\Scheduling\Avanti Scheduling\Avanti Scheduling\Forms\frmMilestones.vb:line 758&lt;/P&gt;&lt;P&gt;at Avanti.Scheduling.frmMilestones.grdMilestones_ClickCellButton(Object sender, CellEventArgs e) in C:\Source Code\Scheduling\Avanti Scheduling\Avanti Scheduling\Forms\frmMilestones.vb:line 747&lt;/P&gt;&lt;P&gt;at Infragistics.Win.UltraWinGrid.UltraGrid.OnClickCellButton(CellEventArgs e)&lt;/P&gt;&lt;P&gt;at Infragistics.Win.UltraWinGrid.UltraGrid.FireEvent(GridEventIds id, EventArgs e)&lt;/P&gt;&lt;P&gt;at Infragistics.Win.UltraWinGrid.UltraGridCell.OnButtonClick()&lt;/P&gt;&lt;P&gt;at Infragistics.Win.UltraWinGrid.ButtonWithStyleUIElement.OnClick()&lt;/P&gt;&lt;P&gt;at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)&lt;/P&gt;&lt;P&gt;at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)&lt;/P&gt;&lt;P&gt;at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)&lt;/P&gt;&lt;P&gt;at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)&lt;/P&gt;&lt;P&gt;at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;/P&gt;&lt;P&gt;at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;/P&gt;&lt;P&gt;at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;/P&gt;&lt;P&gt;at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;/P&gt;&lt;P&gt;at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 03 Dec 2007 08:26:43 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Child Form Dialog Problem</title><link>http://forum.strataframe.net/FindPost12878.aspx</link><description>What is the error that it's throwing?&amp;nbsp; Is it throwing a FileNotFoundException or something else?&amp;nbsp; It could be that the .NET runtime cannot find the assembly that you are trying to load...</description><pubDate>Mon, 03 Dec 2007 08:26:43 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Child Form Dialog Problem</title><link>http://forum.strataframe.net/FindPost12831.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;I figured out what you meant.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ChildFormDialog1.ChildForm = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;GetType(&lt;/FONT&gt;&lt;FONT size=2&gt;Avanti.Scheduling.frmMilestonesDialog).AssemblyQualifiedName&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;It still produced the error. Any other ideas or suggestions&amp;nbsp;on how to make this work so I can call from VB6?&amp;nbsp; I'd hate to have to get rid of the child dialog.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 26 Nov 2007 11:33:42 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Child Form Dialog Problem</title><link>http://forum.strataframe.net/FindPost12827.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;I tried using the fully qualified name in the child for assignment but it didn't seem to make a diffetence calling from the COM assembly.&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.ChildFormDialog1.ChildForm = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Avanti.Scheduling.frmMilestonesDialog, Avanti Systems Scheduling, Version=1.0.0.0, Culture=neutral, PublicKeyToken=df3c50696c85735c"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I'm not clear on the second suggestion&lt;/P&gt;&lt;P&gt;&lt;FONT color=#117711&gt;GetType(SomeNamespace.SomeFormType).AssemblyQualifiedName.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Where do I add this code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Mon, 26 Nov 2007 09:49:07 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Child Form Dialog Problem</title><link>http://forum.strataframe.net/FindPost12764.aspx</link><description>Nope, since it's a COM assembly, it's having issues because there was no .NET entry assembly.&amp;nbsp; As a workaround, you'll have to manually edit the .designer.vb files where you use ChildFormDialogs and change the type name of the ChildForm property to use the fully qualified type name.&lt;/P&gt;&lt;P&gt;So, if you have this:&lt;/P&gt;&lt;P&gt;SomeNamespace.SomeFormType&lt;/P&gt;&lt;P&gt;Then you'll need to change it to this:&lt;/P&gt;&lt;P&gt;SomeNamespace.SomeFormType, ContainingAssemblyName, Version=1.0.0.0, Culture=neutral, PublickKeyToken=hexvalue&lt;/P&gt;&lt;P&gt;You can find the fully qualified name of a type by calling .GetType().AssemblyQualifiedName&lt;/P&gt;&lt;P&gt;You might even try replacing the quoted value with something like this: &lt;/P&gt;&lt;P&gt;GetType(SomeNamespace.SomeFormType).AssemblyQualifiedName&lt;/P&gt;&lt;P&gt;and it might work.</description><pubDate>Mon, 19 Nov 2007 09:35:33 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>