Font size of a UserControl in ToolStripControlHost is wrong after changing system dpi
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 85
Description
### .NET version
8.0
### Did it work in .NET Framework?
Yes
### Did it work in any of the earlier releases of .NET Core or .NET 5+?
_No response_
### Issue description
The Font of UserControl in ToolStripControlHost is wrong after the system dpi scaling is changed if the contextmenu has never been opened before

### Steps to reproduce
Run the attached sample, do not open the contextmenu and change the dpi settings in Windows, app still running. The correct font is set for the form and for menuitems, but the Font for a UserControl under ToolStripControlHost is wrong
In my case I change from 150% (default) to 125%, only a single monitor attached. Windows 11
Contributor guide
Assessment
This issue has not been assessed yet.