question

ErickGalindo-6567 avatar image
0 Votes"
ErickGalindo-6567 asked DanielZhang-MSFT commented

Windows Form size bug

Hi, I was creating a system but when I added a button Windows Form Design started changing the size of every panel I added.

Then, I pressed CTRL + Z to undo the previous size change, the size starts incrementing and now I am unable to resize manually the panels.

Here is the evidence:

119426-wf-bug.png


119427-wf-bug2.png


windows-forms
wf-bug.png (9.7 KiB)
wf-bug2.png (29.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ErickGalindo-6567,
From the description you provided, I cannot determine the cause of the problem. Can you provide some code to reproduce the problem?
Best Regards,
Daniel Zhang

0 Votes 0 ·

1 Answer

cooldadtx avatar image
0 Votes"
cooldadtx answered

It is unclear to me what the bug is. Your screenshot doesn't really provide any information about what controls you're using and how you've configured the various layout options like Anchor, Dock, Padding, Size, AutoSize, etc. Are you using containers to group controls? If so which ones? What is the z-order that will be used to control the final layout during rendering? A sample winforms code block that replicates the issue would be the most beneficial.

Also please identify what runtime you are targeting.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.