Make a custom control that contains a TreeView, leaving room at the Top to draw your own Button control. If you want to detect whether the button was Clicked, do it one of two ways: 1.) Determine if the MouseDown position falls within the Bounds of where you drew the Close Button. Use the code below to draw the button. 2.) Create a very simple separate control called "CloseButton" and all it does on the "OnPaint" event is the following code:
Dim g As Graphics = Me.CreateGraphics
ControlPaint.DrawCaptionButton(g, New Rectangle(50, 50, 50, 50), CaptionButton.Close, ButtonState.Flat)
g.Dispose() : g = Nothing