Dim sp As WinForm.SplitContainer = e.Form.Controls("SplitContainer2")
Dim h As Integer = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.height
Dim w As Integer =System.Windows.Forms.SystemInformation.PrimaryMonitorSize.width
Dim ch As Integer = e.Form.height
Dim cw As Integer = e.Form.width
If e.sender.Text = "打开筛选树"
sp.Panel1.Collapsed = False
e.Sender.Text = "关闭筛选树"
'e.Form.SetBounds(w-cw/2h-ch/2,949,540)
MessageBox.show(h-ch/2)
MessageBox.show(w-cw/2)
ElseIf e.Sender.Text = "关闭筛选树"
sp.Panel1.Collapsed = True
e.Sender.Text = "打开筛选树"
e.Form.SetBounds(ch,cw,791,540)
End If
怎么还是不行啊
搞晕了
[此贴子已经被作者于2015/4/9 11:45:28编辑过]