﻿<?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 » Business Objects and Data Access (How do I?)  » SFUserControl BOTranslation</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 12:55:54 GMT</lastBuildDate><ttl>20</ttl><item><title>SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2274.aspx</link><description>When does the BOTranslation take place, at what point in the object creation process?&amp;nbsp; Is there any error messages if the process doesn't work?&amp;nbsp; I know that the translation work becuase it is working in one of my controls but in this new control it doesn't seem to be working.&amp;nbsp; Any idea where I should start looking?</description><pubDate>Fri, 18 Aug 2006 14:23:10 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2289.aspx</link><description>It inherits from the SF UserControl.&amp;nbsp; When you say the next version are you meaning 1.5?</description><pubDate>Fri, 18 Aug 2006 14:23:10 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2288.aspx</link><description>I'm not sure, Scott.&amp;nbsp; We have the ability in the next version to share data tables between business objects (for situations just like this, when the translation is a little fuzzy).&lt;/P&gt;&lt;P&gt;Does this control you're using inherit from MicroFour.StrataFrame.UI.Windows.Forms.UserControl, or is it custom and implements the IContainerControl on its own?</description><pubDate>Fri, 18 Aug 2006 14:20:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2287.aspx</link><description>After about 3 minutes I get:&lt;/P&gt;&lt;P&gt;OutOfMemoryException&lt;BR&gt;&amp;nbsp;Exception of type 'System.OutOfMemoryException' was thrown.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : mscorlib&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Collections.Generic.List`1.set_Capacity(Int32 value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Collections.Generic.List`1.Add(T item)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.CopyBoundControlsFrom(BusinessLayer BusinessObject)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl SourceContainer, ContainerControl DestinationContainer)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.InitializeObject()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.OnCreateControl()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.CreateControl()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/P&gt;&lt;P&gt;but it did work translate the BO's.&amp;nbsp;Any suggestions?&lt;BR&gt;</description><pubDate>Fri, 18 Aug 2006 14:16:51 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2284.aspx</link><description>It's supposed to get set through the designer.&amp;nbsp; When you drop the control on the form, it will evaluate the property and set the value to the parent control.&lt;/P&gt;&lt;P&gt;If you need to manually translate the business objects, you can try this:&lt;/P&gt;&lt;P&gt;((MicroFour.StrataFrame.UI.IInitOnFormLoad)this.MyUserControl).InitializeObject();&lt;/P&gt;&lt;P&gt;The translations of the business objects occurs within that method, so you might give it a shot.</description><pubDate>Fri, 18 Aug 2006 13:52:39 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2283.aspx</link><description>I know it was set correctly the first time I checked it.&amp;nbsp; Now it appears that it is blank.&amp;nbsp; How would I go about getting this property set.&amp;nbsp; I can't set it before InitilizeComponet and when I set it after InitilizeComponet the system just hangs.</description><pubDate>Fri, 18 Aug 2006 13:22:58 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2280.aspx</link><description>It is set correctly.</description><pubDate>Fri, 18 Aug 2006 11:50:53 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/FindPost2277.aspx</link><description>Make sure that the ParentContainer property of the user controls is being set when you drop it on the form... that's where I'd start looking.</description><pubDate>Fri, 18 Aug 2006 11:42:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>