谢谢

解决方案 »

  1.   

    通过onmouseover=“样式"      样式中可改变按钮任意样式
      

  2.   

    记得复制代码的时候将这2个事件勾挂到你的button的mouseenter和leave上去就看到效果罗
      Graphics g;
            private void button1_MouseEnter(object sender, EventArgs e)
            {
               g = this.CreateGraphics();
                //this.button1.Bounds.Width = 2;
                Rectangle rc = this.button1.Bounds;
                rc.X -= 2;
                rc.Y -= 2;
                rc.Width += 4;
                rc.Height += 4;
                SolidBrush sb = new SolidBrush(Color.Red);
                g.FillRectangle(sb, rc);            
            }        private void button1_MouseLeave(object sender, EventArgs e)
            {
                g.Clear(this.BackColor);
            }