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.
精彩评论