控制窗口高度吧
static flag As Boolean = TrueDim sp As WinForm.SplitContainer = e.Form.Controls("SplitContainer1")If flag Then e.Form.baseform.height += 150 + 30Else e.Form.baseform.height = sp.Panel1.height + 30End Ifflag = not flag