﻿<?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?)  » make a class with a maintenance 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 09:27:58 GMT</lastBuildDate><ttl>20</ttl><item><title>make a class with a maintenance form</title><link>http://forum.strataframe.net/FindPost17531.aspx</link><description>Hi, &lt;/P&gt;&lt;P&gt;How can i make a class with a maintenance form.&lt;/P&gt;&lt;P&gt;I have many table and the maintenance form is equals for a lot of table.&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;managing "civilité"&amp;nbsp;&amp;nbsp;&amp;nbsp; ex M.&amp;nbsp; Mme&amp;nbsp;&amp;nbsp; Melle &lt;/P&gt;&lt;P&gt;managin country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex&amp;nbsp; France, Etats unis, Angleterre, Espagne&lt;/P&gt;&lt;P&gt;What is the best method ??&lt;/P&gt;&lt;P&gt;Thank's &lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Eric</description><pubDate>Sun, 13 Jul 2008 10:51:59 GMT</pubDate><dc:creator>Eric Leissler</dc:creator></item><item><title>RE: make a class with a maintenance form</title><link>http://forum.strataframe.net/FindPost17825.aspx</link><description>Hi Eric,&lt;/P&gt;&lt;P&gt;in a separate project, create a maintenance form with one of these BO, and add all similar bound controls.&lt;/P&gt;&lt;P&gt;then create a template with this form :zip the 3 files of this form, and add the xlm file .template as shown in MSDN helpfile. the simplest way is to open and modify the xml template file associated with SF maintenance form (modify name line and description line in template data section)&lt;/P&gt;&lt;P&gt;add this template in the folder "C:\Documents and Settings\&lt;EM&gt;YOURNAME&lt;/EM&gt;\Application Data\Microsoft\VisualStudio\8.0\ItemTemplatesCache\Visual Basic"&lt;/P&gt;&lt;P&gt;you'll find now this template as a new item in VS menu.&lt;/P&gt;&lt;P&gt;Bonjour Eric,&lt;/P&gt;&lt;P&gt;Dans un projet distinct, tu vas créer un form de maintenance, avec un de ces BO, et tu y ajoutes tous les controles liés dont tu auras besoin.&lt;/P&gt;&lt;P&gt;Ensuite tu crées un modèle à partir de ce form: tu mets les 3 fichiers du form dans un fichier zip, tu ajoutes un fichier de type xml&amp;nbsp;.template comme décrit dans l'aide. le plus simple consiste à ouvrir et modifier le fichier template xml associé au maintenance form de SF (tu as juste à modifer les lignes de nom et de description dans la section template data)&lt;/P&gt;&lt;P&gt;tu ajoutes ce modèle dans le dossier "C:\Documents and Settings\&lt;EM&gt;TON_NOM&lt;/EM&gt;\Application Data\Microsoft\VisualStudio\8.0\ItemTemplatesCache\Visual Basic"&lt;/P&gt;&lt;P&gt;ce nouveau modèle apparaitra maintenant comme nouvel élément disponible depuis le menu de Visual Studio.</description><pubDate>Sun, 13 Jul 2008 10:51:59 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item><item><title>RE: make a class with a maintenance form</title><link>http://forum.strataframe.net/FindPost17613.aspx</link><description>Hi Eric,&lt;/P&gt;&lt;P&gt;Sorry, I did not understand what you were trying to do. I think I do now, but let me make sure:&lt;/P&gt;&lt;P&gt;You want to have one form that can be used to maintain&amp;nbsp;several business objects that have similar or the same structures? Is this correct?&lt;/P&gt;&lt;P&gt;If so, then what you will need is to create your own user control to maintain these items. You will want to create an interface which will be implimented on each business object that you want to support the custom user control (if you intend on having the same column names, etc.), otherwise you can just handle the binding in code within the user control.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Hopefully that should at least give you an idea of what you need. I would give a more detailed explanation, but the specifics get fairly&amp;nbsp;advanced,&amp;nbsp;too much to described&amp;nbsp;with&amp;nbsp;a simple forum post. In depth help on creating and making something like this work would be more of a training or consulting situation.</description><pubDate>Thu, 03 Jul 2008 15:13:13 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: make a class with a maintenance form</title><link>http://forum.strataframe.net/FindPost17608.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;Its not a probleme of zipcode. &lt;/P&gt;&lt;P&gt;Juste i have a lot of form&amp;nbsp; to managing some table.&lt;/P&gt;&lt;P&gt;example :&lt;BR&gt;&amp;nbsp;transport type&amp;nbsp; with identifiant (int) and&amp;nbsp; libelle chr(30)&lt;/P&gt;&lt;P&gt;country&amp;nbsp;&amp;nbsp; with&amp;nbsp; identifiant (int ) and&amp;nbsp; libelle&amp;nbsp; char (40)&lt;/P&gt;&lt;P&gt;sending type&amp;nbsp; with&amp;nbsp; identifian (int) and libelle chr(50)&lt;/P&gt;&lt;P&gt;etc. etc..&lt;/P&gt;&lt;P&gt;so for each table i have to make a maintenance form.&lt;/P&gt;&lt;P&gt;I woud like create on form with my color, with my property&amp;nbsp; and after&amp;nbsp; in my projetc, i woud like to choice this for and&amp;nbsp; "duplicate " this, and after select the busines object&amp;nbsp; .&lt;/P&gt;&lt;P&gt;How can i do that ??&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;&lt;P&gt;Eric</description><pubDate>Thu, 03 Jul 2008 14:28:12 GMT</pubDate><dc:creator>Eric Leissler</dc:creator></item><item><title>RE: make a class with a maintenance form</title><link>http://forum.strataframe.net/FindPost17533.aspx</link><description>Hi Eric!&lt;P&gt;You would create&amp;nbsp;at least one&amp;nbsp;Business Object (BO) to house the local set of data, and would drop that business object on your form.&amp;nbsp; How exactly you fill the business object, and whether you want to create seperate&amp;nbsp;business&amp;nbsp;objects&amp;nbsp;for civilité, country, and any other location type information&amp;nbsp;depends on what you needs are on the form.&lt;/P&gt;&lt;P&gt;We've had a recent discussion on the best way to fill location information that gets increasingly more specific. For example, you can fill a drop down or use a browse to select the country, and based on that selection you could fill the more specific fields with only the values that make sense.&amp;nbsp; That discussion is &lt;A href="http://forum.strataframe.net/Topic17304-7-1.aspx"&gt;here&lt;/A&gt;, and it may be able to give you a better feel for how to tackle your problem.&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;P&gt;Dustin</description><pubDate>Wed, 02 Jul 2008 09:03:43 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>