How to move a control from a form to a panel by selecting the correct location

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
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.
rzeygerman@aol.com
Posts: 1
Joined: Fri Mar 22, 2019 4:12 pm

How to move a control from a form to a panel by selecting the correct location

Post by rzeygerman@aol.com » Fri Mar 22, 2019 9:34 am

This is a Powershell Studio question:

Hi, I have set up a lot of controls directly on the windows form and now I need to create screens. Instead of using multiple forms, I want to use Panels. How do I point each of my controls (text boxes and buttons) to the new panel instead of the form directly using Powershell Studio GUI layout. When I copy paste, things break.

The code way would be something this and it is already being generated so I would prefer to configure this directly in the visual properties / controls

$Form.Control.Remove($button1)
$Panel.Control.Add($button1)

User avatar
Alexander Riedel
Posts: 7052
Joined: Tue May 29, 2007 4:43 pm

Re: How to move a control from a form to a panel by selecting the correct location

Post by Alexander Riedel » Fri Mar 22, 2019 11:30 am

Please post in the PowerShell Studio forum for questions regarding that product.
Alexander Riedel
SAPIEN Technologies, Inc.