我想编写一个 鼠标移动激发的web控件
可是我只会窗体控件的格式
如何编写web控件啊??/大家帮忙给个鼠标移动画线的控件
可是我只会窗体控件的格式
如何编写web控件啊??/大家帮忙给个鼠标移动画线的控件
解决方案 »
- 怎样为“Treeview”的Node节点绑定onmousedown事件
- String.Format中的 @ 和 % 是什么意思
- 动态加载窗体
- 用 .Net 如何开发一个链接数据库的驱动,就像 ADO.Net 一样的。
- 配置文件Settings.settings的值是存哪里的
- 如何在datagridview中添加string array中的数据?
- 帮忙看看这个:must be assigned to before control leaves the current method
- 请有visual C#的朋友帮忙看一下!
- 求助!怎么用c#模拟键盘?
- 一个关于olb的SQL语句和继承的问题!
- 怎么调用API中的GDI32下的FloodFIll函数.
- 请教关于访问动态控件的问题
要用的GDI+
我有一个Windows 窗体控件
如何改成Web控件呢
中间一个鼠标移动的函数是这样的
private void MsMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (Drag)
if(pen)
{
g.DrawLine(new Pen(Color.Red), oldX, oldY, e.X, e.Y);
oldX = e.X;
oldY = e.Y;
this.textBox1.Text="zuobiao"+oldX+","+oldY;
}
if(isMoving && e.Button == MouseButtons.Left this.Location = new Point(this.Location.X - oldX + e.X,this.Location.Y - oldY + e.Y); }