dotnet / dotnet/winforms

When AutoScroll = true, Form size become smaller after show and hide

Open
#1,670 4 comments 0 reactions 0 assignees View on GitHub
:beetle: bug help wanted
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

* .NET Core Version: (3.0 Preview8)
* Have you experienced this same bug with .NET Framework?: Yes

**Problem description:**
After click form maximize button serval times, form will be very small.

**Actual behavior:**
form size will reduce 17 unit after click form maximize button twice.

**Expected behavior:**
form size not change after click form maximize button twice.

**Minimal repro:**
create a winform project
drag a control oveflow form
set form AutoScroll = true

Run
click maximize button serval times(over 10 times will be very clear), you will find form become smaller than before.

But AutoScroll = false, this issue can not reproduce.
[WindowsFormsApp3.zip](https://github.com/dotnet/winforms/files/3523495/WindowsFormsApp3.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.