Search found 319 matches

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

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: 950

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: 950

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: 950

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: 875

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: 875

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: 636

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: 636

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.
by Lembasts
Thu Sep 24, 2020 9:01 pm
Forum: PowerShell GUIs
Topic: Resizing and anchoring
Replies: 6
Views: 636

Resizing and anchoring

Greetings, Ive started to anchor stuff but Ive run into another issue. Let's say I wanted to add a button to the bottom of an existing form. Without anchors I could just extend the size of the form and add the button - all other controls would stay where they are. Now that I have anchors, when I go ...
by Lembasts
Tue Sep 15, 2020 3:06 pm
Forum: PowerShell GUIs
Topic: Tooltip on datagridview control not shown
Replies: 3
Views: 486

Re: Tooltip on datagridview control not shown

jvierra wrote:
Sat Sep 12, 2020 1:17 am
You will have to write custom code to manage tooltips on a DGV.
Its all in the documentation :-)
https://docs.microsoft.com/en-us/dotnet ... etcore-3.1