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 LICENSE NUMBERS, ACTIVATION 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.
This topic is 5 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
PGomersall
Posts: 131
Last visit: Thu Feb 15, 2024 12:14 pm

How to move objects from one psf to another

Post by PGomersall »

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
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: How to move objects from one psf to another

Post by davidc »

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 1907 times
Designer Context Menu Control Set.png
Designer Context Menu Control Set.png (10.87 KiB) Viewed 1907 times

3. Select an icon and enter a description.
Create Control Set.png
Create Control Set.png (16.13 KiB) Viewed 1907 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 1907 times
David
SAPIEN Technologies, Inc.
This topic is 5 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.