﻿<?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 / Business Objects and Data Access (How do I?)  / SFUserControl BOTranslation / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Fri, 21 Nov 2008 15:57:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/Topic2274-6-1.aspx</link><description>It inherits from the SF UserControl.  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/Topic2274-6-1.aspx</link><description>I'm not sure, Scott.  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>Ben Chase</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/Topic2274-6-1.aspx</link><description>After about 3 minutes I get:&lt;/P&gt;&lt;P&gt;OutOfMemoryException&lt;BR&gt; Exception of type 'System.OutOfMemoryException' was thrown.&lt;/P&gt;&lt;P&gt;Source     : mscorlib&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;   at System.Collections.Generic.List`1.set_Capacity(Int32 value)&lt;BR&gt;   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)&lt;BR&gt;   at System.Collections.Generic.List`1.Add(T item)&lt;BR&gt;   at MicroFour.StrataFrame.Business.BusinessLayer.CopyBoundControlsFrom(BusinessLayer BusinessObject)&lt;BR&gt;   at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl SourceContainer, ContainerControl DestinationContainer)&lt;BR&gt;   at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.InitializeObject()&lt;BR&gt;   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()&lt;BR&gt;   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)&lt;BR&gt;   at System.Windows.Forms.Form.OnCreateControl()&lt;BR&gt;   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)&lt;BR&gt;   at System.Windows.Forms.Control.CreateControl()&lt;BR&gt;   at System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Form.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Form.WndProc(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;BR&gt;   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;BR&gt;   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. 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/Topic2274-6-1.aspx</link><description>It's supposed to get set through the designer.  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>Ben Chase</dc:creator></item><item><title>RE: SFUserControl BOTranslation</title><link>http://forum.strataframe.net/Topic2274-6-1.aspx</link><description>I know it was set correctly the first time I checked it.  Now it appears that it is blank.  How would I go about getting this property set.  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/Topic2274-6-1.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/Topic2274-6-1.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>Ben Chase</dc:creator></item><item><title>SFUserControl BOTranslation</title><link>http://forum.strataframe.net/Topic2274-6-1.aspx</link><description>When does the BOTranslation take place, at what point in the object creation process?  Is there any error messages if the process doesn't work?  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.  Any idea where I should start looking?</description><pubDate>Fri, 18 Aug 2006 11:17:16 GMT</pubDate><dc:creator>Scott</dc:creator></item></channel></rss>