|
-
Dec 12th, 2002, 02:17 PM
#1
Thread Starter
Addicted Member
copying and pasting a form
is there a quick way of copying and pasting a whole form (including code within the form load) to another form, without needing to select every element of that form.
Thanks for any assistance.
-
Dec 12th, 2002, 02:19 PM
#2
Re: copying and pasting a form
Originally posted by sparkash
is there a quick way of copying and pasting a whole form (including code within the form load) to another form, without needing to select every element of that form.
Thanks for any assistance.
u mean at design time right?? well not really.. but you can drag and select all items in a form at once and copy them to a blank form... and then just select all the code at once and copy that over 2.. it should be able to be done in 2 copy/paste operations. 1 for the form design and one for the code
-
Dec 12th, 2002, 06:45 PM
#3
Copy the form (in your Window environment, not the IDE), rename the copy to the new form name, edit the new form in a simple text editor like NotePad changing any reference of the old name to the new name and, finally, add the new form to your project.
-
Dec 12th, 2002, 08:19 PM
#4
Frenzied Member
From within the IDE:
1. Make sure the form has been saved
2. Change the .Name Property of the form to be copied to the new name.
3. In the "Project Explorer" right-click on the form to be copied and choose 'Save As..." saving it under a new name.
4. Add the original form back into the project.
-
Dec 12th, 2002, 10:16 PM
#5
Download MZ-Tools a great free add-in for VB that allows you to copy controls with source code. It also has a bunch of other nice features.
-
Dec 12th, 2002, 10:39 PM
#6
-
Dec 13th, 2002, 03:38 AM
#7
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|