如题,请各位帮帮忙

解决方案 »

  1.   

    无边框是啥东西..
    就没有
    private void Form1_Resize(object sender, EventArgs e)
    这种事件了吗?
      

  2.   

    参考
    http://www.codeproject.com/KB/cs/borderlessform.aspxhttp://www.vbdotnetheaven.com/UploadFile/sbond/RubberEffect04232005053423AM/RubberEffect.aspx
      

  3.   

    如果没有什么控件挡住form窗口,可以在WndProc方法进行消息处理
    protected override void WndProc(ref System.Windows.Forms.Message msg)
    {
    base.WndProc(ref msg);
    switch(msg.Msg)
    {
    case 0x0084 :        //WM_HITTEST
    if (isMaxState)
    {
    break;
    }
    #region 四个边
    Point point = Control.MousePosition;
    if(point.X <= this.Left + 3)
    {
    msg.Result = (IntPtr)0x0a;
    }
    if(point.X >= this.Right - 3)
    {
    msg.Result = (IntPtr)0x0b;
    }
    if(point.Y <= this.Top + 3)
    {
    msg.Result = (IntPtr)0x0c;
    }
    if(point.Y >= this.Bottom - 3)
    {
    msg.Result = (IntPtr)0x0f;
    }
    #endregion #region 四个角
    if((point.X <= this.Left + 3)&&(point.Y <= this.Top + 3))
    {
    msg.Result = (IntPtr)0x0d;
    }
    if((point.X <= this.Left + 3)&&(point.Y >= this.Bottom - 3))
    {
    msg.Result = (IntPtr)0x10;
    }
    if((point.X >= this.Right - 3)&&(point.Y <= this.Top + 3))
    {
    msg.Result = (IntPtr)0x0e;
    }
    if((point.X >= this.Right - 3)&&(point.Y >= this.Bottom - 3))
    {
    msg.Result = (IntPtr)0x11;
    }
    #endregion
    break;
    default :
    break;
    }
    }
      

  4.   

    一下,code project上的例子是实现了,但是做的不太好,鼠标拖的太快就不工作了