﻿<?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?)  » Some Questions...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 09:57:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Some Questions...</title><link>http://forum.strataframe.net/FindPost14595.aspx</link><description>Hi Forum,&lt;P&gt;I go on in programming with Strataframe, an meanwhile I'm going to plan a real world application. For that I have several questions, wich I hope are not to stupid to post...&lt;/P&gt;&lt;P&gt;1. Application frame&lt;/P&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P&gt;I'm not sure if it is the right phrase for my question, but I try to explain... In DotNET an Application starts with a form. I think that form is the form wich I would use as a Main form like we have had in Visual FoxPro, the FoxPro-Window, where we place our menu, Main-Toolbar and use it as a background for our application. Is there in Strataframe a similar way to develop applications? Is there a tamplate for it, or have I to create that&amp;nbsp;"Mainwindow" on my own?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir=ltr&gt;2. Strataframe forms, messages etc.&lt;/P&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P dir=ltr&gt;To localize my app I want to use the build in localization tool. But what is with all the Strataframe forms, like the form what is directing the enduser to its database? How can I translate these texts? I can't find these texts within the Localization and Messaging Editor.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir=ltr&gt;3. Datapath&lt;/P&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P dir=ltr&gt;You know in VFP we usually have our database&amp;nbsp;in a folder located under our project folder and VFP is working with relative paths during runtime.&amp;nbsp;DotNET is working with&amp;nbsp;static paths. What is your favorite&amp;nbsp;solution to enable a free installation location for data ( I want to use VFP tables) as well as for the localizations xml files?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir=ltr&gt;I think thats all for the moment. Thanks in advance&lt;/P&gt;&lt;P dir=ltr&gt;Stefan</description><pubDate>Thu, 28 Feb 2008 09:41:29 GMT</pubDate><dc:creator>Stefan Zehner</dc:creator></item><item><title>RE: Some Questions...</title><link>http://forum.strataframe.net/FindPost14606.aspx</link><description>[quote]&lt;P&gt;I'm not sure if it is the right phrase for my question, but I try to explain... In DotNET an Application starts with a form. I think that form is the form wich I would use as a Main form like we have had in Visual FoxPro, the FoxPro-Window, where we place our menu, Main-Toolbar and use it as a background for our application. Is there in Strataframe a similar way to develop applications? Is there a tamplate for it, or have I to create that&amp;nbsp;"Mainwindow" on my own?&lt;/P&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;You bet...you can really turn any .NET form, include an SF window, into an MDI window, which is what VFP ultimately used.&amp;nbsp; StrataFrame does come with a template called an SF Main Form which already has the MDI environment set.&amp;nbsp; You may instead want to use an MDICLient class and then add it to a form which turns it into a MainForm as well.&amp;nbsp; We generally take the MDIClient approach because you have more control...for example changing the background color.&amp;nbsp; To manually add an MDIClient to a form, just create the class and add it to the controls collection:&lt;/P&gt;&lt;P&gt;[codesnippet]Dim myMdiClient As New MDIClient()&lt;/P&gt;&lt;P&gt;MyMdiClient.Backcolor = Colors.White&lt;/P&gt;&lt;P&gt;MyForm.Controls.Add(myMdiClient)[/codesnippet]&lt;/P&gt;&lt;P&gt;or you can just use the SF template:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/8fb0cbc9-dfc9-4a90-a8a7-9492.jpg"&gt;&lt;/P&gt;&lt;P&gt;[quote]To localize my app I want to use the build in localization tool. But what is with all the Strataframe forms, like the form what is directing the enduser to its database? How can I translate these texts? I can't find these texts within the Localization and Messaging Editor.[/quote]&lt;/P&gt;&lt;P&gt;The Connection String Wizard just hasn't been localized.&amp;nbsp; The reason is because most people usually take a different route and manually set the connection strings in their application.&amp;nbsp; As you learn, most end-users just have an issue with setting a connection string.&amp;nbsp; So you may do this during an install or have a single location that is referenced on a network drive that contains the connection information and manually set the datasource.&amp;nbsp; Or you can create your own localized connection form that is shown to the end-user and set the connection manually.&lt;/P&gt;&lt;P&gt;[codesnippet]Databasics.DataSources.Add(New SqlDataSourceItem("","MyConnectionString"))[/codesnippet]&lt;/P&gt;&lt;P&gt;If you are really wanting to use the Connection String Wizard, then we can talk about localizing that form as well (it would be embedded within the framework).&lt;/P&gt;&lt;P&gt;[quote]&lt;/P&gt;&lt;P dir=ltr&gt;You know in VFP we usually have our database&amp;nbsp;in a folder located under our project folder and VFP is working with relative paths during runtime.&amp;nbsp;DotNET is working with&amp;nbsp;static paths. What is your favorite&amp;nbsp;solution to enable a free installation location for data ( I want to use VFP tables) as well as for the localizations xml files?&lt;/P&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;During your installation, you will just want to allow the end-user to set the "shared" or "network" folder to which the VFP and XML tables will be loaded.&amp;nbsp; You will want to write this to a registry value so that when you start your application, you can pull the shared folder location from the registry and then setup your VFP connection:&lt;/P&gt;&lt;P&gt;[codesnippet]DataBasics.DataSources.Add(New VfpDataSourceItem("VFP","provider=VFPOLEDB;datasource=" &amp;amp; MyRegistryPath &amp;amp; "MyDatabase.dbc"))[/codesnippet]</description><pubDate>Thu, 28 Feb 2008 09:41:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>