954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to make a control sizeable with mouse

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..

furk
Newbie Poster
8 posts since Feb 2011
Reputation Points: 8
Solved Threads: 0
 


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

Unhnd_Exception
Posting Pro
570 posts since Nov 2010
Reputation Points: 249
Solved Threads: 201
 

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

k.d.m
Light Poster
35 posts since May 2009
Reputation Points: 11
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: