About Mouse Drag problem C#

  • Thread starter Thread starter Yiu
  • Start date Start date
Y

Yiu

I want to do mouse drag event in the image button of Web form,
have any method for me to use to do that event like java using C#?
thx for help!!!
 
I'd suggest doing it using Java script. If you use C# you would either require every single user to have the .net framework installed (unlikely) or have each millesecond of the event being posted back to the server (which would be woefully inefficient).
In the html design mode you'll want to set the mouse move, mouse down and mouse up events on the image or the body section of the html and hook them up to javascript functions in a script block in the html that move the image and report if the mouse is still down or not.
I haven't got the exact code with me at work but if your patient I'll be near to it in about 9 hours and be able to help you then.
Hit me up at jax@<SPAMGUARDDELETETHIS>diametric.org and i'll get back to you in 9 hours, if you like.

jax
 
Back
Top