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 SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
bgleason
Posts: 22
Joined: Mon Jul 14, 2014 1:35 pm

Compiled EXE Form sizing skewed when ControlBox set False

Post by bgleason » Tue Feb 26, 2019 3:41 pm

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 1056 times
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

User avatar
bgleason
Posts: 22
Joined: Mon Jul 14, 2014 1:35 pm

Re: Compiled EXE Form sizing skewed when ControlBox set False

Post by bgleason » Tue Feb 26, 2019 3:50 pm

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
Joined: Thu Aug 18, 2011 4:56 am

Re: Compiled EXE Form sizing skewed when ControlBox set False

Post by davidc » Tue Feb 26, 2019 4:36 pm

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.