It disposes the current font handle and sets the new font handle to the control with WM_SETFONT
You can see the source in control.cs, but not easy to folllow (search the calls to DisposeFontHandle)
About changing a control's font .

Adel
21
Reputation points
In Windows Forms, when changing a control's font, does the control dispose the old one automatically?
If so, what if this font (the old one) is used elsewhere?
Thanks
1 answer
Sort by: Most helpful
-
Castorix31 86,971 Reputation points
2022-03-29T12:37:21.55+00:00