回复5楼。SizeChanged事件写代码
vars("ie").Width=e.Form.Controls("panel1").width '设置IE对象宽度vars("ie").Height=e.Form.Controls("panel1").height '设置IE对象高度