0

I have to create a usercontrol which could be dragged over the base form and could be resizable during run time.
Please help me out.

5
Contributors
7
Replies
8
Views
9 Years
Discussion Span
Last Post by Ramy Mahrous
0

To make a user control dragable or moveble on your forum you should make it using 3 event handlers
1- on mouse click
2- on mouse move
3- on mouse release

first on mouse click begin assgining the location of the control to the x, y of mouse
once user release mouse on the control don't make the mouse x, y = to user control.
I've sample on my pc I've implemented I'll search for you..

Resizable would be the same thinking..

0

I have already done this but problem is mouse move event for usercontrol can't displace it with respect to parent form.

0

To make a user control dragable or moveble on your forum you should make it using 3 event handlers
1- on mouse click
2- on mouse move
3- on mouse release

first on mouse click begin assgining the location of the control to the x, y of mouse
once user release mouse on the control don't make the mouse x, y = to user control.
I've sample on my pc I've implemented I'll search for you..

Resizable would be the same thinking..

Oh Ramy, it's a long time, how are you?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.