Copying a form

W

Woody Splawn

I am obviously missing something fundamental with regard to making a copy of
a form. When I try it, sometimes it works and sometimes it doesn't. If I
am trying to copy a form that is not complicated, like a dialog it seems to
go ok but I have an form in a VB application that is the main form to the
application. When I try to copy it I run into a variety of problems.

Suppose I have a form called Invoices and I want to make a copy of it called
InvoicesCopy. I realize that after the copy and paste in Solutions Explorer
I need to change the line in code that reads Form Class Invoices to Form
Class InvoicesCopy. However, I think there must be something more because
when I try to compile I get error messages. For one thing the new form does
not seem to understand "ME" anymore. My method is to simple right click on
the form and select copy then right click on the project and select paste.
Then rename the copy to InvoicesCopy. Then change code from Form Class
Invoices to Form Class InvoicesCopy.

what else do I need to do? What things to I need to keep in mind when
trying to copy forms? Is it possible to make copies of forms easily now or
is that a thing of the past with regard to VS.net?
 
D

Duke Sun

The new form does not seem to understand "ME" anymore? Could you please
provide the sample to reproduce the issue?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top