StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Adding a business object to a formExpand / Collapse
Author
Message
Posted 04/06/2006 9:51:52 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 01/02/2008 1:46:14 PM
Posts: 22, Visits: 35
I've created a business object library with 3 business objects.  In my WinForm project, I added a reference to the BOL .dll.  I then added a maintenance form to the WinForm project and I'm trying to add 1 of the business objects to it.  How?  The tutorial has the business object as part of the WinForm project and a tab gets created for the project in the Toolbox.  When I build my project, I don't get a tab for it in the Toolbox.
Post #769
Posted 04/06/2006 12:32:29 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:04:58 PM
Posts: 4,780, Visits: 4,744
There are two options here. 

First Option (Recommended for most cases)
First, is to create a solution that includes both your WinForms sample and your business object library.  To do this, open your WinForms sample and do the following:

1. Open the Solution Explorer
2. Right-Click the solution and go to Add -> Existing Project
3. Choose your business object libarary project.
4. Click OK

At this point your new BO library will be in the same solution as your WinForms application.  Now you need to add a reference to your WinForms project.

1. Under the references item, remove your BOL.dll reference if it exists.
2. Right-click the references item and choose "Add Reference"
3. Click on the Projects page tab
4. Choose your BO Library project.
5. Click OK

This will add the proper reference to your project.  Rebuild the solution and the business objects from your BO libarary will appear in the Toolbox and can be dropped on the form.

Second Option
You can add a tab item to your toolbox and pull it from your BOL.dll library file.  To do this do the following:

1. Right-Click on the Toolbox and click "Add Tab"
2. Name the tab to best suite your needs
3. Right-Click on the new tab and click "Choose Items..."
4. Navigate to your BOL.dll file
5. Click OK and you will see it open a list with all of the items in the BOL.dll checked.
6. Click OK and the items will be added to your Toolbox.

Post #773
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 3:36am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.