How can I place a control over a ListView control (Z-Order 0)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to simulate Windows Explorer's resizing of the Treeview control
and the adjacent ListView control.
Here is what I did : I have a Rectangle control sitting on a Form inbetween
as TreeView and a ListView control. In the MouseMoove event I reposition the
Rectangle control(if the left button is pressed) so that it follows the
mouse's X axis. In the MouseUp event I resize the TreeView and the ListView
control. The problem is that the Rectangle control's Z-Order places it behind
the ListView or the TreeView control.
Any solution or work-around?
Thanks
 
Looks like splitter is a .net framework control I am using access 2002 but
thanks for the info.
 
Alex: The splitter app solution behaves exactly like my solution. What I am
trying to emulate is the Windows Explorer way of doing it. My app and yours
resizes both controls on the fly. The Windows explorer method I beleive is
more elegant since you don't get all the flickering. In windows explorer,
only a dashed line is draged accress the control. When the dashed line is
dropped, then and only then does the rezise occur. But as I mentioned in my
orriginal post, I have yet to find a control that can be draged and that has
a Z-Order that places it above a ListView or a TreeView Control.

Thanks
Richard
 
Back
Top