﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Using forms from one project in another one</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 08 Apr 2026 10:37:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Using forms from one project in another one</title><link>http://forum.strataframe.net/FindPost32593.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;I have a VB.NET 2010 application consisting of a some projects&lt;br/&gt;in a project map containing the main-project which contains the baseforms and approx.&lt;br/&gt;120 forms build on these baseforms.&lt;br/&gt;Now I need a second app which shall use some of the forms of this project.&lt;br/&gt;Are there possibilities to use these forms also in another project and if so,&lt;br/&gt;what is the best way to do this?&lt;br/&gt;&lt;br/&gt;Thanks in advance&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Tue, 20 May 2014 06:58:40 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Using forms from one project in another one</title><link>http://forum.strataframe.net/FindPost32597.aspx</link><description>Hi Ben, &lt;br/&gt;&lt;br/&gt;when I put my base-forms in an windows-application I cannot select them when I want to add a new form and chose the option "Inherited Form" ( Ihope this is correct translated as I use a german version of VS.&lt;br/&gt;&lt;br/&gt;Then&amp;nbsp;I created a BO-Librarary-project. added a baseform, compiled it to a DLL and now I can choose from this DLL.&lt;br/&gt;&lt;br/&gt;Reusing a form from another project in another project works by just adding the form by chosing it in the file-explorer, as long there are references set to the project which can of the type "Windows-Application".&lt;br/&gt;&lt;br/&gt;If I haven't missed a thing, this could be the solution.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Tue, 20 May 2014 06:58:40 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Using forms from one project in another one</title><link>http://forum.strataframe.net/FindPost32595.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;thanks a lot for your help. After rethinking my problem a while I decided to move the forms and baseforms out of my main-programm into two new projects, one for the base-forms and another one for the inherited forms which will be used in one more programs. &lt;br/&gt;&lt;br/&gt;When I created the projects I used the setting "Strataframe Windows Application" which works, but I was wondering if the settimg "Business Object Library" is something special for BOs or just the same as a windows classlibrary? I also add the steps i did to test it with one base- and one inherited form, maybe you can telle me, if I missed something.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas&lt;br/&gt;&lt;br/&gt;This is my first test:&lt;br/&gt;&lt;br/&gt;I created a form based on a baseform and run my app. It worked as expected.&lt;br/&gt;I cut the baseform from my project named "Gal2G" and copied it to a new project named "Gal2GBaseforms".&lt;br/&gt;In the new project I set somw references to other projects needed (Controls, Business Objects etc.)&lt;br/&gt;In my main project I set a reference to the new project.&amp;nbsp; At a first run I had an error which happended because&lt;br/&gt;some resources&amp;nbsp; I commented the lines which contained the now wrong referenece to the main-projects &lt;br/&gt;resource file and it worked. Then I build a new resource-file in the base-forms-project and changed the&lt;br/&gt;reference in the designer-code of the form&lt;br/&gt;&lt;br/&gt;From&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Gal2Grms.MySFSingleDataForm&lt;br/&gt;&lt;br/&gt;To&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Gal2GBaseforms.MySFSingleDataForm&lt;br/&gt;&lt;br/&gt;and set the reference to the images in the base-form also from "Gal2G" to "Gal2GBaseforms".&lt;br/&gt;&lt;br/&gt;Now it looks to me as this is working.&lt;br/&gt;&lt;br/&gt;The second step was to create another new project to host the Forms which I have to take out from the main&lt;br/&gt;project. I Cut and copied the form "Testmove" to the new project, set some some references and included an&lt;br/&gt;"Imports Gal2GForms" in the main program and this worked too.</description><pubDate>Tue, 20 May 2014 06:01:18 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Using forms from one project in another one</title><link>http://forum.strataframe.net/FindPost32594.aspx</link><description>You can reference the assemblies (projects that contain the forms you want to reuse) from within your new application. &amp;nbsp;I'm pretty sure you can even reference another application (.exe) if that's where your forms are; they don't necessarily have to be in a Class Library (.dll). &amp;nbsp;An .exe is simply an assembly with an entry point.</description><pubDate>Mon, 19 May 2014 14:43:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>