﻿<?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 » Issues  » TranslateBusinessObjects casts SourceContainer to BaseForm</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:39:49 GMT</lastBuildDate><ttl>20</ttl><item><title>TranslateBusinessObjects casts SourceContainer to BaseForm</title><link>http://forum.strataframe.net/FindPost5303.aspx</link><description>I am trying to use this routine to translate BO's from a UserControl to a dialog form.&amp;nbsp; I pass the UserControl as the SourceContainer, but I get an error because in this routine you are casting the SourceContainer to a BaseForm.&amp;nbsp; Shouldn't you check to see if this is a form before doing this line?&amp;nbsp; Everything else works with any kind of ContainerControl except this line which isn't needed in that case right?&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;CType&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;(SourceContainer, BaseForm).RemoveObjectFromInitOnFormLoad(DestinationBusinessObject)&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 14 Dec 2006 16:07:30 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: TranslateBusinessObjects casts SourceContainer to BaseForm</title><link>http://forum.strataframe.net/FindPost5321.aspx</link><description>If that's the case you may want to make the types it takes Form types instead of ContainerControl types.&amp;nbsp;&amp;nbsp; Is there a way I can accomplish the translation going from a UserControl to a Form?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Will SharedDataTableKey do what I want here?&amp;nbsp; I have tried to use that feature before and haven't had a lot of luck with it.&amp;nbsp; I inevitably get an error about the key not being the dictionary when I try to view the form in the designer.&amp;nbsp;</description><pubDate>Thu, 14 Dec 2006 16:07:30 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: TranslateBusinessObjects casts SourceContainer to BaseForm</title><link>http://forum.strataframe.net/FindPost5312.aspx</link><description>Actually no...this method is intended for Form use only.&amp;nbsp; I will look for verification, but this method was written to support the BaseForm translations.&amp;nbsp;</description><pubDate>Thu, 14 Dec 2006 14:48:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>