You cannot mess with SplitContainer at all. One possibility is to completely exclude it if you only use it to resize the control. Instead, you could use mouse events on the control itself. Drop the TreeView onto the form and attach it to the left. Subscribe to MouseDown / Move / Up events and write something like this:
bool mDragging; private bool onTreeEdge(Point pos) { return pos.X >= treeView1.DisplayRectangle.Right - 3; } private void treeView1_MouseMove(object sender, MouseEventArgs e) { treeView1.Cursor = mDragging || onTreeEdge(e.Location) ? Cursors.VSplit : Cursors.Default; if (mDragging) treeView1.Width = eX; } private void treeView1_MouseDown(object sender, MouseEventArgs e) { mDragging = onTreeEdge(e.Location); if (mDragging) treeView1.Capture = true; } private void treeView1_MouseUp(object sender, MouseEventArgs e) { mDragging = false; }
source share