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

E

Esperluette

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
 
E

Esperluette

Looks like splitter is a .net framework control I am using access 2002 but
thanks for the info.
 
E

Esperluette

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top