BUG: Form changes size on close and reopen PowerShell Studio.

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 1 year and 6 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.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

BUG: Form changes size on close and reopen PowerShell Studio.

Post by sapowernetworks »

Product, version and build: Powershell Studio, 5.8.208
Operating system: Windows 10 21H2 latest updates
PowerShell version(s): 4.8 or later

Create a new form - Empty Form
Set Size to 500x300 or any thing you like.
Set FormBorderStyle to FixedSingle
Set ControlBox to False
Set ShowIcon to False
Save and Close
Reopen the .psf
The size of the form has changed from 500x300 to 496x296
If you save, close and open again another 4 will be remove to 492x292 and so on.

If any of the 3 setting are changed all is good. Plus I also realize there is no need to set ShowIcon as a FixedSingle form does not show the icon but this is still a bug.

Regards
Rodney
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 1:00 pm
Answers: 39
Been upvoted: 30 times

Re: BUG: Form changes size on close and reopen PowerShell Studio.

Post by brittneyr »

After some further investigation, this is a bug in Microsoft .NET Framework WinForms. It appears to happen when ControlBox is set to false along with some other varying conditions. There is not much we can do besides report the issue to Microsoft.

Other people having similar issues w/ WinForms:
https://stackoverflow.com/questions/276 ... g-on-build
https://social.msdn.microsoft.com/Forum ... m=winforms
Brittney
SAPIEN Technologies, Inc.
User avatar
sapowernetworks
Posts: 9
Last visit: Tue Mar 05, 2024 3:56 pm
Has voted: 1 time

Re: BUG: Form changes size on close and reopen PowerShell Studio.

Post by sapowernetworks »

So after 10 years and this is still a bug that Microsoft has not fixed.

Thanks Microsoft.
This topic is 1 year and 6 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.