如何在运行时用鼠标移动控件(如texbox) [英] how to move controls(like texbox) with mouse at runtime
本文介绍了如何在运行时用鼠标移动控件(如texbox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在发布威胁之前,我对所有内容进行了谷歌搜索,但没有对这个问题的答案进行罚款.
因此,我正在创建一个asp.net/c#网站,我想知道如何通过鼠标移动按钮,texbox,panel ...之类的控件.
我想我们必须使用鼠标事件(鼠标移出鼠标)
如果您能给我写一个代码(用C#编写)或以一般的方式告诉我它的效果,我将非常感谢.
谢谢.
Before posting the threat I googled everything but I didnt fined an answer for this question.
So I''m Creating an asp.net /c# website and i''m wondering how to be able to move controls like buttons,texbox,panel... by mouse.
i guess we have to use mouse events (mouse over mouse out)
I would be very thankful if you could write me a code (in c#) or tell me genarally about how it would be.
thank you.
推荐答案
本文为您提供了一些有关此操作的提示:
http://msdn.microsoft.com/en-us/magazine/cc135985.aspx [ ^ ]
但是,它使用ASP.NET Ajax.
THis article gives you a few tips on doing this:
http://msdn.microsoft.com/en-us/magazine/cc135985.aspx[^]
It uses ASP.NET Ajax though.
您可以使用javascript.您可以看到一些链接
点击
点击
单击
You can use javascript. Some link you can see
Click
Click
Click
为此使用Jquery UI.
http://jqueryui.com/demos/ [ ^ ]
use Jquery UI for That .
http://jqueryui.com/demos/[^]
这篇关于如何在运行时用鼠标移动控件(如texbox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文