Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / May 2005

Tip: Looking for answers? Try searching our database.

Understand Copy/Rename Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayne  Wengert - 20 Apr 2005 14:42 GMT
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
Carlos J. Quintero [.NET MVP] - 21 Apr 2005 09:49 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.