Search found 321 matches

by Lembasts
Tue Apr 06, 2021 6:27 pm
Forum: PowerShell GUIs
Topic: Cannot close form with $FormName.Close()
Replies: 9
Views: 528

Re: Cannot close form with $FormName.Close()

If you just wanted to terminate everything, couldnt you use:
[environment]::exit(0)
?
by Lembasts
Sun Jan 17, 2021 12:49 pm
Forum: PowerShell Studio
Topic: V183 installer
Replies: 1
Views: 268

V183 installer

Greetings,
I'm just curious...
V182 installer file size was 397628kb and V183 is 626914kb.
What new feature required the addition of so much code?

Thanks
David
by Lembasts
Wed Oct 21, 2020 8:27 pm
Forum: PowerShell GUIs
Topic: Resolution issues
Replies: 20
Views: 1498

Re: Resolution issues

Thanks but I still dont know exactly what set dpi awareness does. The doco says: "Setting the process-default DPI awareness via API call can lead to unexpected application behavior" and "For older applications, it is strongly recommended to not use SetProcessDpiAwareness" Is PS an 'older application...
by Lembasts
Wed Oct 21, 2020 6:42 pm
Forum: PowerShell GUIs
Topic: Resolution issues
Replies: 20
Views: 1498

Re: Resolution issues

To keep it simple. If we wish to cater for multiple resolutions/scaling is it true that we must run the snippet set-dpiawareness that you have provided in our form load event? Is it possible to explain exactly what this code is doing?
by Lembasts
Wed Oct 21, 2020 4:23 pm
Forum: PowerShell GUIs
Topic: Resolution issues
Replies: 20
Views: 1498

Re: Resolution issues

Dynamically scaling means yes, calculating sizes based on DPI and scaling factors of the current monitor. Windows does already a lot of that by itself. This is the bit I dont get. When does Windows do alot of that by itself? And when do I have to code for it? In my case someone ran my PS app on a 4...
by Lembasts
Wed Oct 21, 2020 2:47 pm
Forum: PowerShell GUIs
Topic: Resolution issues
Replies: 20
Views: 1498

Re: Resolution issues

Based on your design, anchoring controls to each other, to the sides of the form and dynamically scaling by code might be the solution, but we cannot see anything. How do you anchor controls to each other - all I see is top,bottom, left, right which is only to the sides of the form? By dynamically ...
by Lembasts
Mon Oct 12, 2020 7:21 pm
Forum: PowerShell Studio
Topic: PS 2021
Replies: 3
Views: 1062

Re: PS 2021

Sure do. We in Australia had one of the most horrible fire seasons last summer.
It wasnt a criticism - just a bit of fun.
by Lembasts
Mon Oct 12, 2020 3:06 pm
Forum: PowerShell Studio
Topic: PS 2021
Replies: 3
Views: 1062

PS 2021

Hasnt been an update to V181 for a while.
Speculation is that it's all being saved up for the PS 2021 release? :-)

Cheers
David
by Lembasts
Sun Sep 27, 2020 5:28 pm
Forum: PowerShell GUIs
Topic: Resizing and anchoring
Replies: 6
Views: 799

Re: Resizing and anchoring

Thanks but I think you are completely misunderstanding my question.
by Lembasts
Sun Sep 27, 2020 2:42 pm
Forum: PowerShell GUIs
Topic: Resizing and anchoring
Replies: 6
Views: 799

Re: Resizing and anchoring

I know. But I want to extend the form and add a button to the bottom. Its a real pain to have to undo all the anchors manually to add it then re-add the anchors. I thought there might be an easier way.