可显示/隐藏左边控件的Splitter(2) If Not temp.Equals(sl) Then If sl.Dock = DockStyle.Left Then If temp.Dock = DockStyle.Left AndAlso _ (Not temp.Visible OrElse temp.Left < sl.Left) Then targetctrl = temp Exit For End If ElseIf sl.Dock = DockStyle.Top Then If temp.Dock = DockStyle.Top AndAlso _ (Not temp.Visible OrElse temp.Top < sl.Top) Then targetctrl = temp Exit For End If End If