开发者

Form is not laid out correctly

开发者 https://www.devze.com 2023-01-12 05:19 出处:网络
I have a WinForms form hosted in VB6 application (I am not sure if this is significant). Sometimes form controls are layouted incorrectly (primarily Anchor property doesn\'t work). If I just resize a

I have a WinForms form hosted in VB6 application (I am not sure if this is significant). Sometimes form controls are layouted incorrectly (primarily Anchor property doesn't work). If I just resize a form by mouse - the form is drawn as it should. Is there any method that may solve my layout problems without manual form resizing? I tried PerformLayout, Invalidate开发者_如何转开发 and Refresh methods... but they don't solve my problem.


You could handle the form's Layout event to layout the controls the way they should be.

0

精彩评论

暂无评论...
验证码 换一张
取 消