I am confused on how the renaming and copying of forms in VSNET 2003 works.
If I want to make a copy of an existing form and modify that copy for a
slightly different use, how should I do that? When I rename a form in the
IDE, it appears the original copy still exists?
Thanks for any education on this
Wayne
Hi Wayne,
To copy a form:
1. Select the form, say "Form1.vb", in the Solution Explorer
2. Right-click "Copy"
3. Select the project in the Solution Explorer
4. Right-click "Paste". A "Copy of Form1.vb" file is created
5. Right-click "Rename" and name it "Form2.vb"
6. Open its code window and change "Public Class Form1" by "Public Class
Form2". That is, the name of the file and the name of the class inside the
file are not "synchronized", you must rename both by hand.
To rename an existing form only, you apply steps 5,6 only.

Signature
Carlos J. Quintero
MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> escribió en el mensaje
news:eNYyK7aRFHA.3076@TK2MSFTNGP14.phx.gbl...
>I am confused on how the renaming and copying of forms in VSNET 2003 works.
> If I want to make a copy of an existing form and modify that copy for a
[quoted text clipped - 4 lines]
>
> Wayne
Wayne Wengert - 21 Apr 2005 23:19 GMT
Thanks Carlos. I had been copying the file outside of the project and then
trying to use that copy. I'll try your suggestions.
Wayne
> Hi Wayne,
>
[quoted text clipped - 19 lines]
> >
> > Wayne
Larry Bird - 30 May 2005 14:09 GMT
I tried the instruction that you provided for renaming a form. I was
unsuccessful getting this to work. When I right clicked on the form that I
wanted to rename there is no rename option available. My form name is
"Form1.h".
What I'm I doing wrong?
> Hi Wayne,
>
[quoted text clipped - 19 lines]
> >
> > Wayne
Carlos J. Quintero [.NET MVP] - 31 May 2005 12:11 GMT
Ah, my instructions were intended for VB.NET, C#, or J# forms, and you seem
to be using C++, that I don´t use...

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
>I tried the instruction that you provided for renaming a form. I was
> unsuccessful getting this to work. When I right clicked on the form that
[quoted text clipped - 3 lines]
>
> What I'm I doing wrong?