Compiled EXE Form sizing skewed when ControlBox set False

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

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 5 years and 1 month 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.
User avatar
bgleason
Posts: 29
Last visit: Mon Oct 30, 2023 11:35 am
Been upvoted: 2 times

Compiled EXE Form sizing skewed when ControlBox set False

Post by bgleason »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: Powershell Studio 2019 5.6.159
32 or 64 bit version of product: 64bit
Operating system: Windows 10 1703 (10.0.15063.1563)
32 or 64 bit OS: 64bit

*** Please add details and screenshots as needed below. ***

When building an application form, if I set ControlBox to false and build the application, the form is considerably shorter in height than displayed in the PSS IDE. If I re-enable the ControlBox and build, it is back at the normal height.. Attached is a screenshot...
Screenshot_2.png
Screenshot_2.png (18.52 KiB) Viewed 2210 times
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
bgleason
Posts: 29
Last visit: Mon Oct 30, 2023 11:35 am
Been upvoted: 2 times

Re: Compiled EXE Form sizing skewed when ControlBox set False

Post by bgleason »

To add another note, when you are in PSS and have ControlBox = False, if you just RUN the application, re. to test, it runs fine with no issues, there is something that is done at "Build" time to cause the issue..

Thanks,

Brian
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Compiled EXE Form sizing skewed when ControlBox set False

Post by davidc »

This may just be a .NET WinForms high DPI bug, because if you set the FormBorderStyle to Sizable, the issue goes away on my end.

I will try to research this more.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 1 month 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.