AfterLoad或者SizeChanged事件,写代码
If e.form.panel.parent.parent IsNot Nothing Then e.form.panel.parent.parent.width = 200 e.form.panel.parent.parent.height = 200End If