﻿<?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?)  » Implementing MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 21:33:41 GMT</lastBuildDate><ttl>20</ttl><item><title>Implementing MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl</title><link>http://forum.strataframe.net/FindPost2254.aspx</link><description>I've got an existing form that I need to add MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl support, that is:&lt;br&gt;
    public partial class SearchForm : Form, IFormHelper, MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl&lt;br&gt;
&lt;br&gt;
What methods do I need to add to make the "does not implement interface member" errors go away.&lt;br&gt;</description><pubDate>Thu, 17 Aug 2006 17:16:46 GMT</pubDate><dc:creator>Daniel Essin</dc:creator></item><item><title>RE: Implementing MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl</title><link>http://forum.strataframe.net/FindPost2258.aspx</link><description>That code will not add the functionality for the business objects to initialize themselves when the form loads, but it will add them to the form's business objects collection.</description><pubDate>Thu, 17 Aug 2006 17:16:46 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Implementing MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl</title><link>http://forum.strataframe.net/FindPost2257.aspx</link><description>The code for adding the IContainerControl interface to your existing form is this:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;#region&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; IContainerControl Members&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;BusinessObjectCollection&lt;/FONT&gt;&lt;FONT size=2&gt; _BusinessObjects = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;BusinessObjectCollection&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;List&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;lt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IInitOnFormLoad&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;gt; _ObjectsToInitOnLoad = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;List&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;lt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IInitOnFormLoad&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;gt;();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;List&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;lt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IPreInitOnFormLoad&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;gt; _ObjectsToPreInitOnLoad = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;List&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;lt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IPreInitOnFormLoad&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;gt;();&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.UI.Windows.Forms.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IContainerControl&lt;/FONT&gt;&lt;FONT size=2&gt;.AddBusinessObject(MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;BusinessLayerBase&lt;/FONT&gt;&lt;FONT size=2&gt; BusinessObject)&lt;BR&gt;{&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;._BusinessObjects.Add(BusinessObject);&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.UI.Windows.Forms.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IContainerControl&lt;/FONT&gt;&lt;FONT size=2&gt;.AddObjectToInitOnLoad(MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IInitOnFormLoad&lt;/FONT&gt;&lt;FONT size=2&gt; ObjectToInit)&lt;BR&gt;{&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;._ObjectsToInitOnLoad.Add(ObjectToInit);&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.UI.Windows.Forms.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IContainerControl&lt;/FONT&gt;&lt;FONT size=2&gt;.AddObjectToPreInitOnLoad(MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IPreInitOnFormLoad&lt;/FONT&gt;&lt;FONT size=2&gt; ObjectToPreInit)&lt;BR&gt;{&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;._ObjectsToPreInitOnLoad.Add(ObjectToPreInit);&lt;BR&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.UI.Windows.Forms.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;IContainerControl&lt;/FONT&gt;&lt;FONT size=2&gt;.RemoveBusinessObject(MicroFour.StrataFrame.Business.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;BusinessLayerBase&lt;/FONT&gt;&lt;FONT size=2&gt; BusinessObject)&lt;BR&gt;{&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;._BusinessObjects.Remove(BusinessObject);&lt;BR&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;#endregion&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 17 Aug 2006 17:16:08 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Implementing MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl</title><link>http://forum.strataframe.net/FindPost2256.aspx</link><description>If you hover over the interface name on the inherits declaration, you should be the little "block" at the bottom, right-hand corner of the interface name.&amp;nbsp; When you put your mouse over the block, you'll get a menu that you can open up.&amp;nbsp; That menu should have an option that says "Implement Interface Explicitly," which will create the necessary member stubs for you.&lt;/P&gt;&lt;P&gt;The best way to make sure you implement it properly is to open up the BaseForm.vb file and use the implementation from that file.</description><pubDate>Thu, 17 Aug 2006 16:40:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>