兄弟们在WINFORM中没有这些属性啊!
在WEB中可以设置样式啊!

解决方案 »

  1.   

    兄弟们在WEBFORM中为什么有这些属性啊!
    在WIN中不用设置样式啊!
      

  2.   


    没有这些东西如果需要 继承 button 控件重写
    WndProc 函数在 WM_NCPRINT 消息里重画,边缘windows 桌面程序都是这么做的。
      

  3.   

    比如TextBox,自定义该控件,将其BorderStyle属性定为FixedSingle,然后重画该边框;
    private Color   _BorderColor = Color.FromArgb(137,175,209);
    protected override void WndProc(ref Message m)
    {
    base.WndProc (ref m);
    if (m.Msg==0xF)
    {
    PaintRim(Graphics.FromHwnd(this.Handle ) );
    }

    }
    private void PaintRim(System.Drawing.Graphics g)
    {
    Pen newPen=new Pen(_BorderColor);
    g.DrawRectangle(newPen, base.ClientRectangle.Left,base.ClientRectangle.Top, base.ClientRectangle.Width - 1,base.ClientRectangle.Height - 1);
    g.Dispose();
    }
      

  4.   

    自己动手
    查查MSDN里
    button的属性