in the designer is different from the layout at debug time.

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
winsoft
Posts: 24
Last visit: Sat May 29, 2021 4:59 am

in the designer is different from the layout at debug time.

Post by winsoft »

Hello everyone, I just found a problem, the layout I see in the designer is different from the layout at debug time.

Please see the animated GIF demo below
Attachments
err.psf
(70.75 KiB) Downloaded 119 times
err.gif
err.gif (70.25 KiB) Viewed 2349 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: in the designer is different from the layout at debug time.

Post by jvierra »

I cannot reproduce your issue. Ae you running on a hi-res monitor?
winsoft
Posts: 24
Last visit: Sat May 29, 2021 4:59 am

Re: in the designer is different from the layout at debug time.

Post by winsoft »

My screen resolution is 1366*768

I think the possible problem is that I am using the Simplified Chinese version of the system. :)

Very strange, I have encountered a lot of problems, but I still want to feedback and continue to try

Powershell studio is a great product
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: in the designer is different from the layout at debug time.

Post by jvierra »

Try changing the scaling factor.
winsoft
Posts: 24
Last visit: Sat May 29, 2021 4:59 am

Re: in the designer is different from the layout at debug time.

Post by winsoft »

no effect
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: in the designer is different from the layout at debug time.

Post by jvierra »

Then you likely have issues with the display drivers or with the font setup in the OS version you are using.

I don't believe that PSS has been designed for use in Chinese version of Windows. You should post in the PSS customer forum to see if any Sapien people have seen this.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: in the designer is different from the layout at debug time.

Post by davidc »

Make sure you anchor your controls or use a TableLayoutPanel to keep the controls from overlapping.

I recommend the following article as well:

https://info.sapien.com/index.php/guis/ ... i-displays
David
SAPIEN Technologies, Inc.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked