<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Replicating a form (with its controls)' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Replicating a form (with its controls)' posted on the 'Visual Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 20 Jun 2013 00:49:12 -0700</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 00:49:12 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Replicating a form (with its controls)</title>
      <link>http://www.programmersheaven.com/mb/VBasic/308889/308889/replicating-a-form-with-its-controls/</link>
      <description>I want to add a form to my project that is much like another, but that&lt;br /&gt;
has important differences and distintcly different underlying code. I&lt;br /&gt;
tried the Windows convention of SavingAs new name, hoping to revise it&lt;br /&gt;
to suit. But this doesn't work, either in Design Mode or in a plain&lt;br /&gt;
Windows Explorer context. And, I couldn't find a suitable Copy/Paste&lt;br /&gt;
function either. How can I do it?&lt;br /&gt;
&lt;br /&gt;
Price Buhrman&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/308889/308889/replicating-a-form-with-its-controls/</guid>
      <pubDate>Thu, 14 Jul 2005 13:25:53 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: Replicating a form (with its controls)</title>
      <link>http://www.programmersheaven.com/mb/VBasic/308889/308895/re-replicating-a-form-with-its-controls/#308895</link>
      <description>: I want to add a form to my project that is much like another, but that&lt;br /&gt;
: has important differences and distintcly different underlying code. I&lt;br /&gt;
: tried the Windows convention of SavingAs new name, hoping to revise it&lt;br /&gt;
: to suit. But this doesn't work, either in Design Mode or in a plain&lt;br /&gt;
: Windows Explorer context. And, I couldn't find a suitable Copy/Paste&lt;br /&gt;
: function either. How can I do it?&lt;br /&gt;
&lt;br /&gt;
You could just "Add Form" in the project menu, then open the form you want to copy, hit Ctrl-A to select all the controls, Ctrl-C to copy them, and then open the new form and Ctrl-V to paste them on the new form.  You may need to reposition them slightly depending on how the original form is laid out.&lt;br /&gt;
&lt;br /&gt;
But, I don't know why the SaveAs wouldn't work.  After you did the SaveAs, did you try adding the other form to the project?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$ select * from users where clue &amp;gt; 0
no rows returned
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/308889/308895/re-replicating-a-form-with-its-controls/#308895</guid>
      <pubDate>Thu, 14 Jul 2005 15:19:42 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: Replicating a form (with its controls)</title>
      <link>http://www.programmersheaven.com/mb/VBasic/308889/308960/re-replicating-a-form-with-its-controls/#308960</link>
      <description>: : I want to add a form to my project that is much like another, but that&lt;br /&gt;
: : has important differences and distintcly different underlying code. I&lt;br /&gt;
: : tried the Windows convention of SavingAs new name, hoping to revise it&lt;br /&gt;
: : to suit. But this doesn't work, either in Design Mode or in a plain&lt;br /&gt;
: : Windows Explorer context. And, I couldn't find a suitable Copy/Paste&lt;br /&gt;
: : function either. How can I do it?&lt;br /&gt;
: &lt;br /&gt;
: You could just "Add Form" in the project menu, then open the form you want to copy, hit Ctrl-A to select all the controls, Ctrl-C to copy them, and then open the new form and Ctrl-V to paste them on the new form.  You may need to reposition them slightly depending on how the original form is laid out.&lt;br /&gt;
: &lt;br /&gt;
: But, I don't know why the SaveAs wouldn't work.  After you did the SaveAs, did you try adding the other form to the project?&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: $ select * from users where clue &amp;gt; 0
: no rows returned
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
My guess is that, although SaveAs gave the form a new filename, VB6&lt;br /&gt;
wouldn't load it because, internally, it still had the original name.&lt;br /&gt;
&lt;br /&gt;
Price Buhrman&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/308889/308960/re-replicating-a-form-with-its-controls/#308960</guid>
      <pubDate>Fri, 15 Jul 2005 06:17:15 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: Replicating a form (with its controls)</title>
      <link>http://www.programmersheaven.com/mb/VBasic/308889/308966/re-replicating-a-form-with-its-controls/#308966</link>
      <description>: My guess is that, although SaveAs gave the form a new filename, VB6&lt;br /&gt;
: wouldn't load it because, internally, it still had the original name.&lt;br /&gt;
&lt;br /&gt;
Ok, that makes a little more sense, I think.  Try Save As to rename the file, and then go to the form's property window and change it's Name property and save the project.  Then add the other form back to the project.  See if that helps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$ select * from users where clue &amp;gt; 0
no rows returned
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/308889/308966/re-replicating-a-form-with-its-controls/#308966</guid>
      <pubDate>Fri, 15 Jul 2005 06:56:36 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: Replicating a form (with its controls)</title>
      <link>http://www.programmersheaven.com/mb/VBasic/308889/308999/re-replicating-a-form-with-its-controls/#308999</link>
      <description>: : My guess is that, although SaveAs gave the form a new filename, VB6&lt;br /&gt;
: : wouldn't load it because, internally, it still had the original name.&lt;br /&gt;
Or you can open it with Notepad and quickly change the name of the form.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/308889/308999/re-replicating-a-form-with-its-controls/#308999</guid>
      <pubDate>Fri, 15 Jul 2005 11:59:18 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: Replicating a form (with its controls)</title>
      <link>http://www.programmersheaven.com/mb/VBasic/308889/309093/re-replicating-a-form-with-its-controls/#309093</link>
      <description>: : I want to add a form to my project that is much like another, but that&lt;br /&gt;
: : has important differences and distintcly different underlying code. I&lt;br /&gt;
: : tried the Windows convention of SavingAs new name, hoping to revise it&lt;br /&gt;
: : to suit. But this doesn't work, either in Design Mode or in a plain&lt;br /&gt;
: : Windows Explorer context. And, I couldn't find a suitable Copy/Paste&lt;br /&gt;
: : function either. How can I do it?&lt;br /&gt;
: &lt;br /&gt;
: You could just "Add Form" in the project menu, then open the form you want to copy, hit Ctrl-A to select all the controls, Ctrl-C to copy them, and then open the new form and Ctrl-V to paste them on the new form.  You may need to reposition them slightly depending on how the original form is laid out.&lt;br /&gt;
: &lt;br /&gt;
: But, I don't know why the SaveAs wouldn't work.  After you did the SaveAs, did you try adding the other form to the project?&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;span style="font-size: large;"&gt;&lt;em&gt;&lt;span style="color: Blue;"&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;nfidel&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: $ select * from users where clue &amp;gt; 0
: no rows returned
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
I tried the Ctl+A technique, and it worked just fine. (I had the presence of mind to first set the new form's size to that of the first.) Of course the code part did not get copied, but that suited my plan o.k.&lt;br /&gt;
&lt;br /&gt;
Price Buhrman&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/308889/309093/re-replicating-a-form-with-its-controls/#309093</guid>
      <pubDate>Sat, 16 Jul 2005 13:08:06 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
  </channel>
</rss>