Page 1 of 1

How to move objects from one psf to another

Posted: Fri Feb 15, 2019 2:41 pm
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?

Re: How to move objects from one psf to another

Posted: Fri Feb 15, 2019 3:05 pm
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 1257 times
Designer Context Menu Control Set.png
Designer Context Menu Control Set.png (10.87 KiB) Viewed 1257 times

3. Select an icon and enter a description.
Create Control Set.png
Create Control Set.png (16.13 KiB) Viewed 1257 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 1257 times