我想编写一个 鼠标移动激发的web控件 
可是我只会窗体控件的格式
如何编写web控件啊??/大家帮忙给个鼠标移动画线的控件

解决方案 »

  1.   

    写一个自定义web控件,
    要用的GDI+
      

  2.   

    我不知道格式
    我有一个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); }