How to move objects from one psf to another

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
PGomersall
Posts: 90
Joined: Sun Mar 03, 2013 12:40 pm

How to move objects from one psf to another

Post by PGomersall » Fri Feb 15, 2019 2:41 pm

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.159
OS: Windows 10 Education (64 Bit)
Build: v10.0.17763.0
If I have say an OpenFileDialog, SaveFileDialog and FolderBrowserModernDialog in a psf and have named and configured their properties, how do I copy them to another psf without loosing anything?

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: How to move objects from one psf to another

Post by davidc » Fri Feb 15, 2019 3:05 pm

Copy and paste will not include the wired events. Therefore, I recommend creating a Control Set instead. Then you can drag and drop your control set into other forms.

To create a new control set, follow these steps:

1. Select all the controls you wish to include.

2. Press [Ctrl + T] or use the Ribbon->Designer->Templates->Create Control Set or the designer context menu.
Ribbon - Create Control Set.png
Ribbon - Create Control Set.png (7.88 KiB) Viewed 1239 times
Designer Context Menu Control Set.png
Designer Context Menu Control Set.png (10.87 KiB) Viewed 1239 times

3. Select an icon and enter a description.
Create Control Set.png
Create Control Set.png (16.13 KiB) Viewed 1239 times

You can check any extra functions you wish to include.
Note: PowerShell Studio will automatically include any wired events.

4. Once you save the control set, you can access it from the Toolbox pane under the Control Sets tab:
Toolbox - Control Set Tab.png
Toolbox - Control Set Tab.png (14.71 KiB) Viewed 1239 times
David
SAPIEN Technologies, Inc.