﻿<?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?)  » Manage Form Size since form's creation</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 16:03:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Manage Form Size since form's creation</title><link>http://forum.strataframe.net/FindPost18229.aspx</link><description>Hi all,&lt;/P&gt;&lt;P&gt;In Visual FoxPro, when creating a form you can set the Maximum design area to the size of the target screen where the form will be used like (800x600, 1024x768, 1152x882, etc.)&amp;nbsp; that will show a white box with the preset size selected.&lt;/P&gt;&lt;P&gt;Is there a something like that in VS2008?&amp;nbsp; if not, what would be the best way to create forms with a size targeted to specific screen resolution and then allow the end user to resize those form if they have a bigger resolution?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/729663bf-83ef-42be-b776-7c08.png"&gt;</description><pubDate>Wed, 30 Jul 2008 23:58:15 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Manage Form Size since form's creation</title><link>http://forum.strataframe.net/FindPost18237.aspx</link><description>You can actually find a lot of samples out on the web showing how to create templates.&amp;nbsp; Here is a decent article that I found close to the top of the list when I did a search: &lt;A href="http://codebetter.com/blogs/david.hayden/archive/2005/11/06/134343.aspx"&gt;http://codebetter.com/blogs/david.hayden/archive/2005/11/06/134343.aspx&lt;/A&gt;&amp;nbsp;.&amp;nbsp; It isn't a great sample, but it covers the basics.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The bottom line is that you create the classes just as you would like them inside of VS and everything.&amp;nbsp; Then you ultimately just create a ZIP package with a vstemplate file...and that is pretty much it.&amp;nbsp; You will use the "$command$" items as replacement characters for replacing the class name, etc.&amp;nbsp; If you don't get it going, then let me know.&amp;nbsp; :)</description><pubDate>Wed, 30 Jul 2008 23:58:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Manage Form Size since form's creation</title><link>http://forum.strataframe.net/FindPost18236.aspx</link><description>Thanks Greg, Trent.&lt;/P&gt;&lt;P&gt;[quote]We created custom templates for our dialogs so that when we create them, they are already the correct size to develop on.[/quote]&lt;/P&gt;&lt;P&gt;Trent if you don't mind, can you provide the steps to create such a template?&amp;nbsp; I believe it may be like creating the base form class, but honestly I really don't know where to start in order to create a form template which is what I really need.</description><pubDate>Wed, 30 Jul 2008 22:24:02 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Manage Form Size since form's creation</title><link>http://forum.strataframe.net/FindPost18233.aspx</link><description>You will just want to set the minimum size of your base dialog to whatever size you want to develop for.&amp;nbsp; This way you cannot make it smaller than that size.&amp;nbsp; However, you can leave the MaximumSize alone so that the dialog can be scaled to whatever size.&amp;nbsp; We created custom templates for our dialogs so that when we create them, they are already the correct size to develop on.&amp;nbsp; It actually is better in the long run than VFP...that feature generally caused me more problems than do me favors.&amp;nbsp; In any case, this is the approach we take.</description><pubDate>Wed, 30 Jul 2008 17:31:01 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Manage Form Size since form's creation</title><link>http://forum.strataframe.net/FindPost18232.aspx</link><description>That's pretty cool!  I don't know of anyway to do this with VS.  I just take a guess, then run the app at the desired resolution and see if it works.  After a while I just sort of know how big is too big (or too small).  I'll be interested in what others do.</description><pubDate>Wed, 30 Jul 2008 16:33:05 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>