dotnet / dotnet/winforms

[Multi-Monitor][PermonitorV2] CheckedListBox is not display scrollbar on secondary screen

Open
#8,267 5 comments 0 reactions 0 assignees View on GitHub
area-HDPI-PMv2
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .NET version

.NET 8.0.100-alpha.1.225727.7

### Did it work in .NET Framework?

Yes

### Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, it also repro on .NET 6.0 & 7.0.

### Issue description

CheckedListBox is not display scrollbar when move from 100% primary to 300% secondary monitor.
![image](https://user-images.githubusercontent.com/86937911/203498208-71d91ccd-555f-4876-9146-618b50fc7430.png)

### Steps to reproduce

1. Launch VS instance on 100% primary screen.
2. Create a WinForms .NET Core project.
3. Add PerMonitorV2 in csproj file.
4. Drag and drop a checkedlistbox control to form designer and add multiple items make sure control has scrollbar.
5. Build and run it, move to 300% secondary monitor.

Or:

1. Extract and open [Testcheckedlistbox.zip](https://github.com/dotnet/winforms/files/10073672/Testcheckedlistbox.zip) on 100% primary screen.
2. Build and run it, move to 300% secondary monitor.

**Actual result:**
CheckedListBox is not display scrollbar when move from 100% primary to 300% secondary monitor.
![image](https://user-images.githubusercontent.com/86937911/203498208-71d91ccd-555f-4876-9146-618b50fc7430.png)

**Expected result:**
CheckedListBox should display scrollbar when move from 100% primary to 300% secondary monitor.
![image](https://user-images.githubusercontent.com/86937911/203498924-78fc3b60-1870-48fb-bfe9-150f5cb8219f.png)

**More info:**
1. This issue doesn't repro on SystemAware and DpiUnware mode.
2. This issue does not repro on move from 300% primary screen to 100% secondary monitor.
3. **The scrollbar is redisplayed when the mouse is dragged over the CheckedListBox on the secondary monitor.**

https://user-images.githubusercontent.com/86937911/203501522-06bed95c-2385-4a2b-a62c-8364180be2b5.mp4

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.