to reposition controls in runtime using mouse

Shakti_012

New member
Joined
Jan 28, 2006
Messages
3
Programming Experience
1-3
How can I reposition webcontrol at runtime by dragging them with mouse .
How to use the mousedown,etc events for these web controls.
I am in fix .Please help.
 
You have to search a Javascript with DOM solution to do that.
 
Hey John ,

Thanx for the suggestion .
Ihave been able to reposition controls but the drag drop feel is not there

I have wriiten javascrit code where I change the location of control to the mouseup position .

It would help if u could elaborate a littele

Thanx again ,

Shakti
 
Since this is a VB.Net forum I just thought it would be much easier to find a solution at a Javascript place... that's why I told you to search.

In Javascript you have mouse down-move-up events that should be of use, they don't exist in ASP.Net. I haven't tried it myself, but it's common to do stuff like this: get the element on mouse down, move it with mouse move (if mouse is down and got an element), release/place it on mouse up.
 
Back
Top