Windows Form size bug

Erick Galindo 1 Reputation point
2021-07-30T14:32:58.893+00:00

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
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 51,346 Reputation points
    2021-07-30T15:13:37.587+00:00

    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.

    0 comments No comments