Results 1 to 4 of 4

Thread: Make a Copy of a Form During Design Time - VB Express

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member JazzBass's Avatar
    Join Date
    Jun 1999
    Posts
    393

    Make a Copy of a Form During Design Time - VB Express

    Hi all,

    I have a form that has the controls and code I need and is working fine, but I was hoping to develop a more 'Wizard' type.

    What I want to do is copy the existing form and name it something appropriate so I still have the original, and can work on the new one.

    I do a File - Save As and save a copy of the form that way, but when I add the original back into my project, I get a bunch of errors saying that 'something-something has already been declared', etc...

    How can I do what I'm asking for?

    Thanks,
    JB

    Update

    Well, I think I figured it out. You do the File - Save As and then view the code behind the newly renamed form and you need to manually change the line:
    VB Code:
    1. Public Class frmOriginal
    to:
    VB Code:
    1. Public Class frmCopyofOriginal

    Then at that point, you can add the original form back into the project and not get any errors.

    Is there a more 'automatic' way of doing this?

    Thanks again,
    JB
    Last edited by JazzBass; Nov 8th, 2006 at 03:39 PM.
    JazzBass
    In the .NET era
    Trying to remember VB6
    Progress:
    XP Professional @ Home
    and @ the Office

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width