WinForms HighDPI PerMonitorV2 RichTextBox looses formatting
Open
area-controls-RichEdit
area-HDPI-PMv2
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
**.NET Core Version:**
SDK: 5.0.301 (ef17233f86)
Runtime: 5.0.7 (556582d964)
**Problem description:**
Moving a window containing a RichTextBox between two displays makes the RichTextBox drop all formattings when PerMonitorV2 is enabled.
Starting on main display:

After being moved to second display:

Minimal repro:
A sample is attached here:
[TestDpiRichTextBox.zip](https://github.com/dotnet/winforms/files/6775074/TestDpiRichTextBox.zip)
Contributor guide
Assessment
This issue has not been assessed yet.