Page 1 of 1

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

Posted: Fri Mar 22, 2019 9:34 am
by rzeygerman@aol.com
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)

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

Posted: Fri Mar 22, 2019 11:30 am
by Alexander Riedel
Please post in the PowerShell Studio forum for questions regarding that product.