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.
Printable View
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 codeQuote:
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.
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.
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.
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.
Wow! Thanks!!
Thanks guys.
Merry xmas