C# VB.NET VB6 VBA
The feature allows you to copy and paste control(s) along with related code (event handlers) from a form, usercontrol, etc. to another.
offers the following ways to copy control(s) with code:
- The menu.
- The button on the toolbar.
- The menu entry on the context menu of selected controls of a form.
- In , the keyboard shortcut associated with the command.
- In , the keyboard shortcut associated with the command.
- In , the keyboard shortcut associated with the feature.
offers the following ways to paste control(s) with code:
- The menu.
- The button on the toolbar.
- The menu entry on the context menu of a form.
- In , the keyboard shortcut associated with the command.
- In , the keyboard shortcut associated with the command.
- In , the keyboard shortcut associated with the feature.
Remarks:
- In , this feature only works with forms, not with , , or forms.
- In , the language of the source form and of the target form must be the same.
- In , this feature doesn't work with forms, it only works with VBA UserForms ( menu) since is an add-in for the VBA editor and not an add-in specific for .
- 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.
- In , the declaration of the event handler is generated by 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
|