Hi,
I'm developing an application which has a treeview and a crystal report viewer. There are a lot of other stuff too, but I want to make the user be able to change the size of the treeview with the mouse (see the picture)

http://imageshack.us/photo/my-images/3/mousedrag.png/

how can I do this?

thanks in advance..

Unhnd_Exception commented: Unhnd_Exception -2

Recommended Answers

All 2 Replies

Member Avatar for Unhnd_Exception

Use a split container and put the treeview into panel 1. Set the treeview's dock to fill.

Use mouse click and drag events. Inside the drag event if control is being clicked change the size according to the moved position.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.