|
The feature allows you to copy and paste control(s) along with related code (event handlers) from a form, usercontrol, etc. to another.
MZ-Tools offers the following ways to copy controls with code:
- The menu.
- The button on the toolbar.
- The context menu of selected controls on a form.
- The keyboard shortcut associated with the . command.
MZ-Tools offers the following ways to paste controls with code:
- The menu.
- The button on the toolbar.
- The context menu of a form.
- The keyboard shortcut associated with the . command.
Remarks:
- Smart Device projects are not supported by this feature.
- The .NET language of the source form and of the target form must be the same.
- The operation is not executed if any of the selected controls in the source form already exist in the target form.
- This feature only works within the same IDE instance, not across different IDE instances.
- The declaration of the event handler is generated by Visual Studio on the target form, rather than copied from the source form (this is due to technical reasons). That means that if you have modified the scope or the parameter names of the event handler in the source form, those modifications won't be applied to the event handler of the destination form.
See Also:
Keyboard Shortcuts Options
|