﻿<?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?)  » Adding a business object to a form</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 07:37:44 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding a business object to a form</title><link>http://forum.strataframe.net/FindPost769.aspx</link><description>I've created a business object library with 3 business objects.&amp;nbsp; In my WinForm project, I added a reference to the BOL .dll.&amp;nbsp; I then added a maintenance form to the WinForm project and I'm trying to add 1 of the business objects to it.&amp;nbsp; How?&amp;nbsp; The tutorial has the business object as part of the WinForm project and a tab gets created for the project in the Toolbox.&amp;nbsp; When I build my project,&amp;nbsp;I don't get a tab for it in the Toolbox.</description><pubDate>Thu, 06 Apr 2006 12:32:29 GMT</pubDate><dc:creator>franka</dc:creator></item><item><title>RE: Adding a business object to a form</title><link>http://forum.strataframe.net/FindPost773.aspx</link><description>There are two options here.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First Option &lt;/STRONG&gt;(Recommended for most cases)&lt;BR&gt;First, is to create a solution that includes both your WinForms sample and your business object library.&amp;nbsp; To do this, open your WinForms sample and do the following:&lt;/P&gt;&lt;P&gt;1. Open the Solution Explorer&lt;BR&gt;2. Right-Click the solution and go to Add -&amp;gt; Existing Project&lt;BR&gt;3. Choose your business object libarary project.&lt;BR&gt;4. Click OK&lt;/P&gt;&lt;P&gt;At this point your new BO library will be in the same solution as your WinForms application.&amp;nbsp; Now you need to add a reference to your WinForms project.&lt;/P&gt;&lt;P&gt;1. Under the references item, remove your BOL.dll reference if it exists.&lt;BR&gt;2. Right-click the references item and choose "Add Reference"&lt;BR&gt;3. Click on the Projects page tab&lt;BR&gt;4. Choose your BO Library project.&lt;BR&gt;5. Click OK&lt;/P&gt;&lt;P&gt;This will add the proper reference to your project.&amp;nbsp; Rebuild the solution and the business objects from your BO libarary will appear in the Toolbox and can be dropped on the form.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second Option&lt;/STRONG&gt;&lt;BR&gt;You can add a tab item to your toolbox and pull it from your BOL.dll library file.&amp;nbsp; To do this do the following:&lt;/P&gt;&lt;P&gt;1. Right-Click on the Toolbox and click "Add Tab"&lt;BR&gt;2. Name the tab to best suite your needs&lt;BR&gt;3. Right-Click on the new tab and click "Choose Items..."&lt;BR&gt;4. Navigate to your BOL.dll file&lt;BR&gt;5. Click OK and you will see it open a list with all of the items in the BOL.dll checked.&lt;BR&gt;6. Click OK and the items will be added to your Toolbox.</description><pubDate>Thu, 06 Apr 2006 12:32:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>