Thank you, Andreas! Our team was struggling with this exact issue regarding the WM_SIZE values being passed to custom ActiveX controls (e.g. 709x320 for .NET 4.8 vs 605x252 for .NET 8.0). Your clean one-line fix resolved the problem for each of our apps.