Product, version and build: latest update PS Studio
32 or 64 bit version of product: 64
Operating system: W2K12R2
32 or 64 bit OS: 64
PowerShell Version: 5
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
Hi,
I would like to know if I can safely remove (empty) code which is put there by PS Studio or if it is needed (then for what?).
F.e.
$contextmenuStripComputer_Opening = [System.ComponentModel.CancelEventHandler]{
#Event Argument: $_ = [System.ComponentModel.CancelEventArgs]
#TODO: Place custom script here
}
Then also I have a picturebox ($picturebox1) which I cannot find in my design view but is there. How can I select it and make it popup so I could see the properties/dragg it if it would be out of the form (what I think is the case)?
Steven
Cleanup PS Studio code + cleanup items
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Cleanup PS Studio code + cleanup items
[TOPIC MOVED TO THE POWERSHELL GUIS FORUM BY MODERATOR]
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- dan.potter
- Posts: 709
- Last visit: Wed Nov 14, 2018 11:39 am
Re: Cleanup PS Studio code + cleanup items
If you are talking about the comments, it's an option in the options panel.
As for the full code block, if you delete it PS studio will ask you if you want to remove the event for it. Choose yes.
As for the full code block, if you delete it PS studio will ask you if you want to remove the event for it. Choose yes.
Re: Cleanup PS Studio code + cleanup items
On the top of the "Properties" panel is a drop down. It contains all objects on the form. Select the hidden object and it will be selected. If it is off of the form just set the location to 0,0 and it will become visible.
Re: Cleanup PS Studio code + cleanup items
Ok, thanks, that worked indeed!
When I resize the form, how can I make sure every item resizes with it?
When I resize the form, how can I make sure every item resizes with it?
Re: Cleanup PS Studio code + cleanup items
TO resize with a form a control must be able to be resized and it must be anchored.
From what you have posted it is not possible to offer more help than that.
From what you have posted it is not possible to offer more help than that.
Re: Cleanup PS Studio code + cleanup items
My question = is it safe to say that all code which contains nothing more then "#TODO: Place custom script here" can be removed?dan.potter wrote:If you are talking about the comments, it's an option in the options panel.
As for the full code block, if you delete it PS studio will ask you if you want to remove the event for it. Choose yes.